summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2018-07-12 16:33:45 -0400
committerGeert Bosch <geert@mongodb.com>2018-07-12 16:33:45 -0400
commita9e1b69204e7999d5f31013532cc5c9842371f78 (patch)
tree1289bcb8779dbc16983160fe2c36493ccd7480d2
parent069e6f06b4e0faef45661ac043c7a4ebcf026d96 (diff)
downloadmongo-a9e1b69204e7999d5f31013532cc5c9842371f78.tar.gz
Fix error codes
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state_impl.cpp2
-rw-r--r--src/mongo/db/s/add_shard_cmd.cpp2
-rw-r--r--src/mongo/rpc/reply_builder_interface.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
index a17d3506ca7..03cc731a0b4 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
@@ -518,7 +518,7 @@ OpTime ReplicationCoordinatorExternalStateImpl::onTransitionToPrimary(OperationC
std::call_once(verifySystemIndexesOnce, [opCtx] {
const auto globalAuthzManager = AuthorizationManager::get(opCtx->getServiceContext());
if (globalAuthzManager->shouldValidateAuthSchemaOnStartup()) {
- fassert(65536, verifySystemIndexes(opCtx));
+ fassert(50877, verifySystemIndexes(opCtx));
}
});
diff --git a/src/mongo/db/s/add_shard_cmd.cpp b/src/mongo/db/s/add_shard_cmd.cpp
index cd473227846..82e858dee23 100644
--- a/src/mongo/db/s/add_shard_cmd.cpp
+++ b/src/mongo/db/s/add_shard_cmd.cpp
@@ -57,7 +57,7 @@ public:
using InvocationBase::InvocationBase;
void typedRun(OperationContext* opCtx) {
- uassert(99981,
+ uassert(50876,
"Cannot run addShard on a node started without --shardsvr",
serverGlobalParams.clusterRole == ClusterRole::ShardServer);
diff --git a/src/mongo/rpc/reply_builder_interface.h b/src/mongo/rpc/reply_builder_interface.h
index 70524fc3a64..64a8cab8891 100644
--- a/src/mongo/rpc/reply_builder_interface.h
+++ b/src/mongo/rpc/reply_builder_interface.h
@@ -72,7 +72,7 @@ public:
* before the body as the body will have status types appended at the end.
*/
virtual OpMsgBuilder::DocSequenceBuilder getDocSequenceBuilder(StringData name) {
- uasserted(99980, "Only OpMsg may use document sequences");
+ uasserted(50875, "Only OpMsg may use document sequences");
}
virtual ReplyBuilderInterface& setMetadata(const BSONObj& metadata) = 0;