mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Fixed more cases causing a successful completion with a non-empty status vector.
This commit is contained in:
parent
3b489338f6
commit
2760b48e81
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user