Skip to content

Commit 4a9da16

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 f094936 commit 4a9da16

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
@@ -9087,7 +9087,7 @@ bool TimeoutTimer::expired() const
90879087
return false;
90889088

90899089
const SINT64 t = currTime();
9090-
return t >= m_start + m_value;
9090+
return t >= m_start + m_value - 1;
90919091
}
90929092

90939093
unsigned int TimeoutTimer::timeToExpire() const

0 commit comments

Comments
 (0)