From 1d972fce782c675c4f2af2c7e2eacbec17b0ff49 Mon Sep 17 00:00:00 2001 From: Dwight Date: Wed, 2 Mar 2011 12:45:03 -0500 Subject: [PATCH] the same check is done in the lock so if we remove this we eliminate the race condition --- db/dur.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/db/dur.cpp b/db/dur.cpp index 156136a773c..26375da43c4 100644 --- a/db/dur.cpp +++ b/db/dur.cpp @@ -526,11 +526,6 @@ namespace mongo { } static void go() { - if( !commitJob.hasWritten() ){ - commitJob.notifyCommitted(); - return; - } - { readlocktry lk("", 1000); if( lk.got() ) {