mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Easy fix for the crash reported by Alex privately. More generic solution is desirable.
This commit is contained in:
parent
959230d6ea
commit
95047dd88f
@ -1377,9 +1377,12 @@ static void execute_looper(thread_db* tdbb,
|
||||
|
||||
// Ensure the cancellation lock can be triggered
|
||||
|
||||
Lock* const lock = transaction->tra_attachment->att_cancel_lock;
|
||||
if (lock && lock->lck_logical == LCK_none)
|
||||
LCK_lock(tdbb, lock, LCK_SR, LCK_WAIT);
|
||||
if (transaction && (transaction != dbb->dbb_sys_trans))
|
||||
{
|
||||
Lock* const lock = transaction->tra_attachment->att_cancel_lock;
|
||||
if (lock && lock->lck_logical == LCK_none)
|
||||
LCK_lock(tdbb, lock, LCK_SR, LCK_WAIT);
|
||||
}
|
||||
|
||||
// Start a save point
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user