diff options
author | Jamie Heppenstall <jamie.heppenstall@mongodb.com> | 2019-06-06 15:00:55 -0400 |
---|---|---|
committer | Jamie Heppenstall <jamie.heppenstall@mongodb.com> | 2019-06-07 11:25:56 -0400 |
commit | 0863aca0c6ad060ad241b7fa75fb03db06beccb0 (patch) | |
tree | f13e72e24d9ea1ec68f6ef3b70f07254583664d7 /src/mongo/s/commands/cluster_create_indexes_cmd.cpp | |
parent | 8b2879c30bcb8d8f5163ecf3050d8bdc421786c7 (diff) | |
download | mongo-0863aca0c6ad060ad241b7fa75fb03db06beccb0.tar.gz |
SERVER-39659 Reformat createShardDatabase to return void and call uasserts on all relevant statuses
Diffstat (limited to 'src/mongo/s/commands/cluster_create_indexes_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_create_indexes_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_create_indexes_cmd.cpp b/src/mongo/s/commands/cluster_create_indexes_cmd.cpp index 65ac1d1abcc..31e0d36625a 100644 --- a/src/mongo/s/commands/cluster_create_indexes_cmd.cpp +++ b/src/mongo/s/commands/cluster_create_indexes_cmd.cpp @@ -71,7 +71,7 @@ public: const NamespaceString nss(CommandHelpers::parseNsCollectionRequired(dbName, cmdObj)); LOG(1) << "createIndexes: " << nss << " cmd:" << redact(cmdObj); - uassertStatusOK(createShardDatabase(opCtx, dbName)); + createShardDatabase(opCtx, dbName); auto shardResponses = scatterGatherOnlyVersionIfUnsharded( opCtx, |