8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

Fixed my error at patch for CORE-4565. It was the reason of false "lock denied" errors.

This commit is contained in:
hvlad 2015-01-21 09:18:18 +00:00
parent 4e7d2da77c
commit 8216554413

View File

@ -4057,7 +4057,7 @@ static LockState lock_buffer(thread_db* tdbb, BufferDesc* bdb, const SSHORT wait
// Case: a timeout was specified, or the caller didn't want to wait, return the error.
if ((wait == LCK_NO_WAIT) || ((wait < 0) && (status[1] == isc_lock_timeout)))
if ((wait == LCK_NO_WAIT) || ((wait < 0) && (temp_status[1] == isc_lock_timeout)))
{
bdb->release(tdbb, false);
return lsLockTimeout;
@ -4099,7 +4099,7 @@ static LockState lock_buffer(thread_db* tdbb, BufferDesc* bdb, const SSHORT wait
// Case: a timeout was specified, or the caller didn't want to wait, return the error.
if ((wait < 0) && (status[1] == isc_lock_timeout))
if ((wait < 0) && (temp_status[1] == isc_lock_timeout))
{
bdb->release(tdbb, false);
return lsLockTimeout;