8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +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:
hvlad 2012-06-20 18:57:39 +00:00
parent e74a496acf
commit b8e6e1e303

View File

@ -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
}