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:
parent
9639c1a58c
commit
1d972fce78
@ -526,11 +526,6 @@ namespace mongo {
|
||||
}
|
||||
|
||||
static void go() {
|
||||
if( !commitJob.hasWritten() ){
|
||||
commitJob.notifyCommitted();
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
readlocktry lk("", 1000);
|
||||
if( lk.got() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user