Skip to content

Commit 88d9d86

Browse files
committed
Make TimeoutTimer::expired() tolerate rounding in TimeoutTimer::currTime() up to 1 ms.
This should fix failures of QA test for #6802 that sometimes happens due to waiting in Lock Manager completes 1ms before timer expiration.
1 parent ec94de1 commit 88d9d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jrd/jrd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8988,7 +8988,7 @@ bool TimeoutTimer::expired() const
89888988
return false;
89898989

89908990
const SINT64 t = currTime();
8991-
return t >= m_start + m_value;
8991+
return t >= m_start + m_value - 1;
89928992
}
89938993

89948994
unsigned int TimeoutTimer::timeToExpire() const

0 commit comments

Comments
 (0)