0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-29 16:47:28 +01:00

the same check is done in the lock so if we remove this we eliminate the race condition

This commit is contained in:
Dwight 2011-03-02 12:45:03 -05:00
parent 9639c1a58c
commit 1d972fce78

View File

@ -526,11 +526,6 @@ namespace mongo {
}
static void go() {
if( !commitJob.hasWritten() ){
commitJob.notifyCommitted();
return;
}
{
readlocktry lk("", 1000);
if( lk.got() ) {