diff options
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index 4868d7f4a75..69bc38cd3e5 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -916,7 +916,7 @@ Status applyOperation_inlock(OperationContext* txn, // was a simple { _id : ... } update criteria string msg = str::stream() << "failed to apply update: " << redact(op); error() << msg; - return Status(ErrorCodes::OperationFailed, msg); + return Status(ErrorCodes::UpdateOperationFailed, msg); } // Need to check to see if it isn't present so we can exit early with a // failure. Note that adds some overhead for this extra check in some cases, @@ -932,7 +932,7 @@ Status applyOperation_inlock(OperationContext* txn, Helpers::findOne(txn, collection, updateCriteria, false).isNull())) { string msg = str::stream() << "couldn't find doc: " << redact(op); error() << msg; - return Status(ErrorCodes::OperationFailed, msg); + return Status(ErrorCodes::UpdateOperationFailed, msg); } // Otherwise, it's present; zero objects were updated because of additional @@ -944,7 +944,7 @@ Status applyOperation_inlock(OperationContext* txn, if (!upsert) { string msg = str::stream() << "update of non-mod failed: " << redact(op); error() << msg; - return Status(ErrorCodes::OperationFailed, msg); + return Status(ErrorCodes::UpdateOperationFailed, msg); } } } |