diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2022-06-08 14:35:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-08 20:15:11 +0000 |
commit | ddc027f204e12c4ad4518736550281f6f07beaf3 (patch) | |
tree | 48547c6ed35a144866dce150ea368883ce31d4c0 /src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp | |
parent | 023f0b82b857255968d4e27f3a51ed820ec174ea (diff) | |
download | mongo-ddc027f204e12c4ad4518736550281f6f07beaf3.tar.gz |
Revert "SERVER-65572: Remove featureFlagClusterWideConfig"
This reverts commit 9508343fa1fc296ac200a6342b8fe974c17ee019.
Diffstat (limited to 'src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp')
-rw-r--r-- | src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp b/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp index 947ec9fb3c2..7de1d4c3efe 100644 --- a/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp +++ b/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp @@ -1201,6 +1201,9 @@ void ShardingCatalogManager::_pushClusterParametersToNewShard( void ShardingCatalogManager::_standardizeClusterParameters(OperationContext* opCtx, RemoteCommandTargeter* targeter) { + if (!gFeatureFlagClusterWideConfig.isEnabled(serverGlobalParams.featureCompatibility)) + return; + auto clusterParameterDocs = uassertStatusOK(Grid::get(opCtx)->shardRegistry()->getConfigShard()->exhaustiveFindOnConfig( opCtx, |