summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2022-01-27 17:13:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-27 18:04:01 +0000
commite164041d38bc3c1ac0e902ddd432cfb996fb9e58 (patch)
treea208216284e82e382f080ee95fd05776f5f1a2a8 /src/mongo/db/ops
parent6fd839896564cffae7f9b37d2758e79eba82555b (diff)
downloadmongo-e164041d38bc3c1ac0e902ddd432cfb996fb9e58.tar.gz
SERVER-61501 Create sharding suite where collections are clustered by default
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/write_ops_exec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/ops/write_ops_exec.cpp b/src/mongo/db/ops/write_ops_exec.cpp
index d656d24a0a0..32213015ea7 100644
--- a/src/mongo/db/ops/write_ops_exec.cpp
+++ b/src/mongo/db/ops/write_ops_exec.cpp
@@ -248,7 +248,8 @@ void makeCollection(OperationContext* opCtx, const NamespaceString& ns) {
if (auto fp = globalFailPointRegistry().find("clusterAllCollectionsByDefault"); fp &&
fp->shouldFail() &&
feature_flags::gClusteredIndexes.isEnabled(
- serverGlobalParams.featureCompatibility)) {
+ serverGlobalParams.featureCompatibility) &&
+ !clustered_util::requiresLegacyFormat(ns)) {
defaultCollectionOptions.clusteredIndex =
clustered_util::makeDefaultClusteredIdIndex();
}