0
0
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:
Aaron 2010-05-20 11:12:42 -07:00
parent 5ca456e9d5
commit 1b3225224b

View File

@ -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;
}
}