diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-05-05 11:39:36 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-05-05 11:39:36 -0400 |
commit | 7ab97aaaf42b91736afd61ed7bfe684d393c89c2 (patch) | |
tree | 82cab546a84a093819f7df3577f943cc7ec22220 /src | |
parent | 06c1c59750e4ce2eafa6b42966bd0759e47a496b (diff) | |
download | mongo-7ab97aaaf42b91736afd61ed7bfe684d393c89c2.tar.gz |
fix error codes
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/bson/bsonelement.h | 2 | ||||
-rw-r--r-- | src/mongo/db/repl/rollback_impl.cpp | 2 | ||||
-rw-r--r-- | src/mongo/shell/bench.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h index dd68d333f63..d88d775d0f2 100644 --- a/src/mongo/bson/bsonelement.h +++ b/src/mongo/bson/bsonelement.h @@ -611,7 +611,7 @@ public: const char* data = nullptr; if (type() == BinData && binDataType() == BinDataType::MD5Type) data = binData(len); - uassert(550418, "md5 must be a 16-byte binary field with MD5 (5) subtype", len == 16); + uassert(40437, "md5 must be a 16-byte binary field with MD5 (5) subtype", len == 16); std::array<unsigned char, 16> result; memcpy(&result, data, len); return result; diff --git a/src/mongo/db/repl/rollback_impl.cpp b/src/mongo/db/repl/rollback_impl.cpp index 599c5f4eb5e..809389d2ef2 100644 --- a/src/mongo/db/repl/rollback_impl.cpp +++ b/src/mongo/db/repl/rollback_impl.cpp @@ -214,7 +214,7 @@ void RollbackImpl::_finishCallback(OperationContext* opCtx, StatusWith<OpTime> l if (ErrorCodes::UnrecoverableRollbackError == lastApplied.getStatus().code()) { severe() << "Unable to complete rollback. A full resync may be needed: " << redact(lastApplied.getStatus()); - fassertFailedNoTrace(550419); + fassertFailedNoTrace(40435); } // After running callback function '_onCompletion', clear '_onCompletion' to release any diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index 1b0e7d249f6..d604c2bbdec 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -215,7 +215,7 @@ BenchRunOp opFromBson(const BSONObj& op) { } else if (name == "context") { myOp.context = arg.Obj(); } else if (name == "cpuFactor") { - uassert(550420, + uassert(40436, str::stream() << "Field 'cpuFactor' should be a number, instead it's type: " << typeName(arg.type()), arg.isNumber()); |