summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2021-06-10 13:45:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-10 19:24:14 +0000
commit71a233b10833950c565d6f87d7cd5cf29e59ab1e (patch)
tree6663795ac1621eecd3f1f813937377465ed7251d
parent49e1ff73fbeaaf75f36edbc87471e8d5af234115 (diff)
downloadmongo-71a233b10833950c565d6f87d7cd5cf29e59ab1e.tar.gz
SERVER-57608 shardCollection should take new path on FCV versions greater than 5.0
-rw-r--r--src/mongo/db/s/shardsvr_create_collection_command.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/s/shardsvr_create_collection_command.cpp b/src/mongo/db/s/shardsvr_create_collection_command.cpp
index a5923ad38de..1e5bec2cad1 100644
--- a/src/mongo/db/s/shardsvr_create_collection_command.cpp
+++ b/src/mongo/db/s/shardsvr_create_collection_command.cpp
@@ -234,8 +234,7 @@ public:
FixedFCVRegion fcvRegion(opCtx);
bool useNewPath = [&] {
- return fcvRegion->getVersion() == FCVersion::kVersion50 &&
- feature_flags::gShardingFullDDLSupport.isEnabled(*fcvRegion);
+ return feature_flags::gShardingFullDDLSupport.isEnabled(*fcvRegion);
}();
if (!useNewPath) {