Skip to content

Commit 481863e

Browse files
committed
Fixed #7979: Hang when database with disconnect trigger using MON$ tables is shutting down
1 parent 44fb322 commit 481863e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jrd/cch.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,6 @@ bool CCH_exclusive_attachment(thread_db* tdbb, USHORT level, SSHORT wait_flag, S
590590
{
591591
try
592592
{
593-
tdbb->checkCancelState();
594-
595593
bool found = false;
596594
for (Jrd::Attachment* other_attachment = attachment->att_next; other_attachment;
597595
other_attachment = other_attachment->att_next)
@@ -642,6 +640,7 @@ bool CCH_exclusive_attachment(thread_db* tdbb, USHORT level, SSHORT wait_flag, S
642640
if (remaining >= CCH_EXCLUSIVE_RETRY_INTERVAL)
643641
{
644642
SyncUnlockGuard unlock(exLock ? (*exGuard) : dsGuard);
643+
tdbb->reschedule();
645644
Thread::sleep(CCH_EXCLUSIVE_RETRY_INTERVAL);
646645
}
647646

0 commit comments

Comments
 (0)