diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2021-06-07 08:34:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-07 13:31:16 +0000 |
commit | 2d3200ce27c7a71b1f9157e273596e78ec07db97 (patch) | |
tree | a78e079f1541e5d7a00b271feed4a4ed9b464c1c /src/mongo/db/s/shard_collection_legacy.cpp | |
parent | 0407fb9ea0cceedd89e98907b78a75e650aed5e9 (diff) | |
download | mongo-2d3200ce27c7a71b1f9157e273596e78ec07db97.tar.gz |
SERVER-57484 ShardCollectionLegacy should cleanup leftover chunks by ns in 4.9
Diffstat (limited to 'src/mongo/db/s/shard_collection_legacy.cpp')
-rw-r--r-- | src/mongo/db/s/shard_collection_legacy.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/shard_collection_legacy.cpp b/src/mongo/db/s/shard_collection_legacy.cpp index be939b295ea..2730d7c3ee2 100644 --- a/src/mongo/db/s/shard_collection_legacy.cpp +++ b/src/mongo/db/s/shard_collection_legacy.cpp @@ -558,10 +558,11 @@ CreateCollectionResponse shardCollection(OperationContext* opCtx, if (feature_flags::gShardingFullDDLSupportTimestampedVersion.isEnabledAndIgnoreFCV()) { if (serverGlobalParams.featureCompatibility.getVersion() == - FCVersion::kFullyDowngradedTo44) { + FCVersion::kFullyDowngradedTo44 || + serverGlobalParams.featureCompatibility.getVersion() == FCVersion::kVersion49) { checkForExistingChunks(opCtx, nss, boost::none); } else if (serverGlobalParams.featureCompatibility.getVersion() == - FCVersion::kVersion49) { + FCVersion::kVersion50) { if (auto optUUID = sharding_ddl_util::getCollectionUUID(opCtx, nss)) checkForExistingChunks(opCtx, nss, optUUID); } else { |