summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/set_feature_compatibility_version_command.cpp')
-rw-r--r--src/mongo/db/commands/set_feature_compatibility_version_command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
index d4ac59cfec3..119b9149557 100644
--- a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
+++ b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
@@ -745,7 +745,7 @@ private:
ErrorCodes::CannotDowngrade,
fmt::format(
"Cannot downgrade the cluster when there are indexes that have "
- "the 'disallowNewDuplicateKeys' field. Use listIndexes to find "
+ "the 'prepareUnique' field. Use listIndexes to find "
"them and drop "
"the indexes or use collMod to manually set it to false to "
"remove the field "
@@ -753,7 +753,7 @@ private:
"'{}' on collection: '{}'",
indexEntry->descriptor()->indexName(),
collection->ns().toString()),
- !indexEntry->descriptor()->disallowNewDuplicateKeys());
+ !indexEntry->descriptor()->prepareUnique());
}
return true;
});