diff options
author | Haley Connelly <haley.connelly@mongodb.com> | 2022-01-27 17:13:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-27 18:04:01 +0000 |
commit | e164041d38bc3c1ac0e902ddd432cfb996fb9e58 (patch) | |
tree | a208216284e82e382f080ee95fd05776f5f1a2a8 /src/mongo/db/ops | |
parent | 6fd839896564cffae7f9b37d2758e79eba82555b (diff) | |
download | mongo-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.cpp | 3 |
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(); } |