mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-109 fix justOne regression
This commit is contained in:
parent
5ca456e9d5
commit
1b3225224b
@ -134,6 +134,7 @@ namespace mongo {
|
||||
shared_ptr< DeleteOp > bestOp = s.runOpOnce( original );
|
||||
shared_ptr<Cursor> creal = bestOp->newCursor();
|
||||
|
||||
//TODO continue
|
||||
if( !creal->ok() )
|
||||
return nDeleted;
|
||||
|
||||
@ -200,7 +201,7 @@ namespace mongo {
|
||||
if ( cc.get() && ClientCursor::find( id , false ) == 0 ){
|
||||
cc.release();
|
||||
}
|
||||
if ( justOne && nDeleted ) {
|
||||
if ( justOneOrig && nDeleted ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user