Subject | Re: [firebird-support] Why I cannot use firebird services to validate a remote database |
---|---|
Author | Mark Rotteveel |
Post date | 2019-11-25T15:32:31Z |
On 25-11-2019 15:25, Roberto Vieweg jjw.roberto.firebird@...
[firebird-support] wrote:
(http://tracker.firebirdsql.org/browse/JDBC-600) to see if this is
something that can be fixed or improved in Jaybird.
Mark
--
Mark Rotteveel
[firebird-support] wrote:
> The problem was the "time" between perform the SHUTDOWN and the VALIDATION.Good to hear you managed to solve your problem. I have created a ticket
>
> I just add a 1 second "sleep" between the shutdown and validate, and it
> works!
>
> FBMaintenanceManager mgr = ...... ;
> mgr.shutdownDatabase(FBMaintenanceManager.SHUTDOWN_FORCE, 0);
> Thread.sleep(1000); // holy sleep
> mgr.validateDatabase(FBMaintenanceManager.VALIDATE_READ_ONLY);
(http://tracker.firebirdsql.org/browse/JDBC-600) to see if this is
something that can be fixed or improved in Jaybird.
Mark
--
Mark Rotteveel