diff options
author | Geert Bosch <geert@mongodb.com> | 2018-07-12 16:33:45 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2018-07-12 16:33:45 -0400 |
commit | a9e1b69204e7999d5f31013532cc5c9842371f78 (patch) | |
tree | 1289bcb8779dbc16983160fe2c36493ccd7480d2 | |
parent | 069e6f06b4e0faef45661ac043c7a4ebcf026d96 (diff) | |
download | mongo-a9e1b69204e7999d5f31013532cc5c9842371f78.tar.gz |
Fix error codes
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/add_shard_cmd.cpp | 2 | ||||
-rw-r--r-- | src/mongo/rpc/reply_builder_interface.h | 2 |
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; |