summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorPierlauro Sciarelli <pierlauro.sciarelli@mongodb.com>2021-01-21 11:51:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-21 14:23:20 +0000
commit9b962886132727fa5ab9863f96cbe825cb7a3ad0 (patch)
tree7cdc05d9905998f7a060af6be039f8bc7b00f518 /src/mongo
parentefa6daec5a21e0ff396723a2f66ca5c1820d1fb5 (diff)
downloadmongo-9b962886132727fa5ab9863f96cbe825cb7a3ad0.tar.gz
SERVER-53825 Range deletions collection must not be dropped on downgrade to v4.4
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/commands/set_feature_compatibility_version_command.cpp13
1 files changed, 0 insertions, 13 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 9ed2a2f7cea..070723236cd 100644
--- a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
+++ b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
@@ -325,10 +325,6 @@ public:
});
}
- auto replCoord = repl::ReplicationCoordinator::get(opCtx);
- const bool isReplSet =
- replCoord->getReplicationMode() == repl::ReplicationCoordinator::modeReplSet;
-
checkInitialSyncFinished(opCtx);
FeatureCompatibilityVersion::updateFeatureCompatibilityVersionDocument(
@@ -349,20 +345,11 @@ public:
return false;
if (serverGlobalParams.clusterRole == ClusterRole::ShardServer) {
- LOGV2(20502, "Downgrade: dropping config.rangeDeletions collection");
- migrationutil::dropRangeDeletionsCollection(opCtx);
-
if (requestedVersion < FeatureCompatibilityParams::Version::kVersion49) {
// SERVER-52632: Remove once 5.0 becomes the LastLTS
shardmetadatautil::downgradeShardConfigDatabasesEntriesToPre49(opCtx);
shardmetadatautil::downgradeShardConfigCollectionEntriesToPre49(opCtx);
}
-
-
- } else if (isReplSet || serverGlobalParams.clusterRole == ClusterRole::ConfigServer) {
- // The default rwc document should only be deleted on plain replica sets and the
- // config server replica set, not on shards or standalones.
- deletePersistedDefaultRWConcernDocument(opCtx);
}
if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer) {