NBACKUP locks db file on error
------------------------------
Key: CORE-6319
URL: http://tracker.firebirdsql.org/browse/CORE-6319
Project: Firebird Core
Issue Type: Bug
Components: NBACKUP
Affects Versions: 4.0 Beta 2
Reporter: Vlad Khorsun
When I give wrong backup file to NBACKUP.exe -INPLACE, error is reported as
expected:
NBACKUP -inplace -restore localhost/3333:Z:\export\TESTF2.FDB Z:\export\x05G.nbk
Invalid incremental backup file: Z:\export\x05G.nbk
NBACKUP -inplace -restore localhost/3333:Z:\export\TESTF2.FDB Z:\export\x05G.nbk
Invalid incremental backup file: Z:\export\x05G.nbk
But when I do the same using FB Services API (isc_action_svc_nrest,
isc_spb_options+isc_spb_nbk_inplace, ...)
then after the first error the database will remain locked, and all subsequent
attempts to work with it raise:
Statement failed, SQLSTATE = HY000
Error opening database file: Z:\EXPORT\TESTF2.FDB
-The process cannot access the file because it is being used by another
process
The FB server must be restarted to unlock the file.
(tested with Firebird-4.0.0.1963-0-Beta2 and snapshot
Firebird-4.0.0.1999-0_x64)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel