mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
yield lock during removeRange SERVER-1521
This commit is contained in:
parent
cc3ffa4b1a
commit
6766569f9a
@ -305,6 +305,10 @@ namespace mongo {
|
||||
|
||||
c->checkLocation();
|
||||
|
||||
if ( yield && ! cc->yieldSometimes() ){
|
||||
// cursor got finished by someone else, so we're done
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return num;
|
||||
|
Loading…
Reference in New Issue
Block a user