summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-12-19 08:21:16 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-19 15:37:35 +0000
commit68fa4028f80eeb1db169e5904446071a827e0cc0 (patch)
tree583f646573bbb80e2c724b00cf9e92bd8dc98ae6 /src/mongo/s/commands
parent9aba0cac770d87d36cf0f0d19a1be06e73312221 (diff)
downloadmongo-68fa4028f80eeb1db169e5904446071a827e0cc0.tar.gz
SERVER-52538 Update IDL for "create" command, part 2
Diffstat (limited to 'src/mongo/s/commands')
-rw-r--r--src/mongo/s/commands/cluster_create_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_create_cmd.cpp b/src/mongo/s/commands/cluster_create_cmd.cpp
index 35c15cd890a..8fcc64e0cb8 100644
--- a/src/mongo/s/commands/cluster_create_cmd.cpp
+++ b/src/mongo/s/commands/cluster_create_cmd.cpp
@@ -145,7 +145,7 @@ public:
if (createStatus == ErrorCodes::NamespaceExists && !opCtx->inMultiDocumentTransaction()) {
// NamespaceExists will cause multi-document transactions to implicitly abort, so
// mongos should surface this error to the client.
- CollectionOptions options = uassertStatusOK(CollectionOptions::parse(cmdObj));
+ auto options = CollectionOptions::fromCreateCommand(cmd);
checkCollectionOptions(opCtx, cmd.getNamespace(), options);
} else {
uassertStatusOK(createStatus);