Skip to content

Commit 98ba60e

Browse files
committed
Correction for my last commit, thanks to Vlad.
1 parent af6a227 commit 98ba60e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/jrd/jrd.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9011,11 +9011,13 @@ void thread_db::reschedule()
90119011
{
90129012
FB_UINT64 cnt = sync->getLockCounter();
90139013

9014-
EngineCheckout cout(this, FB_FUNCTION);
9015-
Thread::yield();
9014+
{ // scope
9015+
EngineCheckout cout(this, FB_FUNCTION);
9016+
Thread::yield();
90169017

9017-
while (sync->hasContention() && (sync->getLockCounter() == cnt))
9018-
Thread::sleep(1);
9018+
while (sync->hasContention() && (sync->getLockCounter() == cnt))
9019+
Thread::sleep(1);
9020+
}
90199021

90209022
checkCancelState();
90219023
}

0 commit comments

Comments
 (0)