mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Backported fix from v3 : backup state lock should be released at latch timeout, else lock state accounting becomes inconsistent.
This commit is contained in:
parent
e74a496acf
commit
b8e6e1e303
@ -912,7 +912,9 @@ SSHORT CCH_fetch_lock(thread_db* tdbb, WIN* window, USHORT lock_type, SSHORT wai
|
||||
BufferDesc* bdb = get_buffer(tdbb, window->win_page,
|
||||
((lock_type >= LCK_write) ? LATCH_exclusive : LATCH_shared), wait);
|
||||
|
||||
if (wait != 1 && bdb == 0) {
|
||||
if (wait != 1 && bdb == 0)
|
||||
{
|
||||
attachment->backupStateReadUnLock(tdbb);
|
||||
return -2; // latch timeout
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user