diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/oplog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/oplog.cpp b/src/mongo/db/oplog.cpp index 2f9562c9f42..8c0cb3a2970 100644 --- a/src/mongo/db/oplog.cpp +++ b/src/mongo/db/oplog.cpp @@ -861,14 +861,16 @@ namespace mongo { // apply int num = 0; BSONObjIterator i( ops ); + BSONArrayBuilder ab; while ( i.more() ) { BSONElement e = i.next(); - // todo SERVER-4259 ? - applyOperation_inlock( e.Obj() , false ); + bool failed = applyOperation_inlock( e.Obj() , false ); + ab.append(!failed); num++; } result.append( "applied" , num ); + result.append( "results" , ab.arr() ); if ( ! fromRepl ) { // We want this applied atomically on slaves |