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

Fixed bug CORE-2640 : A regular deadlock may not be detected by the lock manager under some conditions, thus resulting in a hang

This commit is contained in:
hvlad 2009-09-25 18:28:22 +00:00
parent 92b819b1c7
commit bc7f2e683a

View File

@ -2762,8 +2762,11 @@ void LockManager::post_pending(lbl* lock)
if (request->lrq_flags & LRQ_pending)
break;
if (!(request->lrq_flags & (LRQ_blocking | LRQ_blocking_seen)))
if (!(request->lrq_flags & (LRQ_blocking | LRQ_blocking_seen)) &&
request->lrq_ast_routine)
{
request->lrq_flags |= LRQ_just_granted;
}
}
}
}