diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2022-10-21 17:09:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-21 18:05:07 +0000 |
commit | 7664638d42f73bd0ccf855846e15269af5b24e68 (patch) | |
tree | 755b19b8e15f6b36d9e2b2b11c3a11e4e90e7734 /src/mongo/s/mongos_main.cpp | |
parent | 916753069a2d1b0fda32eadf83b9006b9d09b906 (diff) | |
download | mongo-7664638d42f73bd0ccf855846e15269af5b24e68.tar.gz |
SERVER-70755 Reorganize IDL and feature flag code for analyze_shard_key
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r-- | src/mongo/s/mongos_main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp index 6a07b0a1ea0..115abcaba2c 100644 --- a/src/mongo/s/mongos_main.cpp +++ b/src/mongo/s/mongos_main.cpp @@ -73,7 +73,6 @@ #include "mongo/logv2/log.h" #include "mongo/platform/process_id.h" #include "mongo/rpc/metadata/egress_metadata_hook_list.h" -#include "mongo/s/analyze_shard_key_feature_flag_gen.h" #include "mongo/s/balancer_configuration.h" #include "mongo/s/catalog_cache.h" #include "mongo/s/client/shard_factory.h" @@ -314,8 +313,7 @@ void cleanupTask(const ShutdownTaskArgs& shutdownArgs) { lsc->joinOnShutDown(); } - if (analyze_shard_key::gFeatureFlagAnalyzeShardKey.isEnabled( - serverGlobalParams.featureCompatibility)) { + if (analyze_shard_key::isFeatureFlagEnabled()) { LOGV2_OPTIONS( 6973901, {LogComponent::kDefault}, "Shutting down the QueryAnalysisSampler"); analyze_shard_key::QueryAnalysisSampler::get(serviceContext).onShutdown(); @@ -795,8 +793,7 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { return ExitCode::processHealthCheck; } - if (analyze_shard_key::gFeatureFlagAnalyzeShardKey.isEnabled( - serverGlobalParams.featureCompatibility)) { + if (analyze_shard_key::isFeatureFlagEnabled()) { LOGV2_OPTIONS(6973900, {LogComponent::kDefault}, "Starting the QueryAnalysisSampler"); analyze_shard_key::QueryAnalysisSampler::get(serviceContext).onStartup(); } |