summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorYuhong Zhang <yuhong.zhang@mongodb.com>2022-04-13 03:52:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-15 04:35:08 +0000
commit9b6755d018fa749405cc2a603c1c5d935a20a742 (patch)
tree060dd04cff8e0f758b7e25423cbd7097b02439b0 /src/mongo/db/commands
parent6b3982de4060731aa003fb9fd9f0fd13c57c6e08 (diff)
downloadmongo-9b6755d018fa749405cc2a603c1c5d935a20a742.tar.gz
SERVER-64444 Extend `collMod` command to fix invalid boolean index options
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/create_indexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp
index c85c7cf6743..c665a45a983 100644
--- a/src/mongo/db/commands/create_indexes.cpp
+++ b/src/mongo/db/commands/create_indexes.cpp
@@ -112,7 +112,7 @@ std::vector<BSONObj> parseAndValidateIndexSpecs(OperationContext* opCtx,
for (const auto& index : cmd.getIndexes()) {
BSONObj parsedIndexSpec = index;
if (ignoreUnknownIndexOptions) {
- parsedIndexSpec = index_key_validate::removeUnknownFields(parsedIndexSpec);
+ parsedIndexSpec = index_key_validate::removeUnknownFields(ns, parsedIndexSpec);
}
auto indexSpecStatus = index_key_validate::validateIndexSpec(opCtx, parsedIndexSpec);