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

Easy fix for the crash reported by Alex privately. More generic solution is desirable.

This commit is contained in:
dimitr 2012-12-26 10:27:30 +00:00
parent 959230d6ea
commit 95047dd88f

View File

@ -1377,9 +1377,12 @@ static void execute_looper(thread_db* tdbb,
// Ensure the cancellation lock can be triggered
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