8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:43:03 +01:00

Fixed more cases causing a successful completion with a non-empty status vector.

This commit is contained in:
dimitr 2009-01-23 11:16:31 +00:00
parent 3b489338f6
commit 2760b48e81

View File

@ -5309,6 +5309,7 @@ static SSHORT lock_buffer(thread_db* tdbb, BufferDesc* bdb, SSHORT wait, SCHAR p
if ((wait == LCK_NO_WAIT) || ((wait < 0) && (status[1] == isc_lock_timeout)))
{
fb_utils::init_status(status);
release_bdb(tdbb, bdb, false, false, false);
return -1;
}
@ -5356,6 +5357,7 @@ static SSHORT lock_buffer(thread_db* tdbb, BufferDesc* bdb, SSHORT wait, SCHAR p
if ((wait < 0) && (status[1] == isc_lock_timeout))
{
fb_utils::init_status(status);
release_bdb(tdbb, bdb, false, false, false);
return -1;
}