Skip to content

Commit 46fd841

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 7aac4d7 commit 46fd841

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
@@ -9130,7 +9130,7 @@ bool TimeoutTimer::expired() const
91309130
return false;
91319131

91329132
const SINT64 t = currTime();
9133-
return t >= m_start + m_value;
9133+
return t >= m_start + m_value - 1;
91349134
}
91359135

91369136
unsigned int TimeoutTimer::timeToExpire() const

0 commit comments

Comments
 (0)