Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 03c5055

Browse files
committed
fix failing threading test on Windows2008 build
The lock test is failing sometimes; the test is very sensitive to the performance of the machine at the time of the run and seems to be wildly fluctuating.
1 parent b7eb383 commit 03c5055

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mongo/dbtests/threadedtests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ namespace ThreadedTests {
542542
log() << x << ' ' << ch << " got" << endl;
543543
if( ch == 'U' ) {
544544
#ifdef MONGO_USE_SRW_ON_WINDOWS
545-
if( t.millis() > 200 ) {
545+
// SRW locks are neither fair nor FIFO, as per docs
546+
if( t.millis() > 2000 ) {
546547
#else
547548
if( t.millis() > 20 ) {
548549
#endif

0 commit comments

Comments
 (0)