summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2023-03-21 17:15:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-21 19:34:25 +0000
commita591acffac83e96ac22cc52e1a8888f0b5cee95a (patch)
tree93cfb075ebc65e12464c436a229cd8b30981fe53 /src/mongo/db/s
parentdc2b5c3b0d45f1083609fea07323f715e2888051 (diff)
downloadmongo-a591acffac83e96ac22cc52e1a8888f0b5cee95a.tar.gz
SERVER-75027 Refactor helpers in analyze_shard_key_util_role.cpp
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/query_analysis_coordinator.cpp2
-rw-r--r--src/mongo/db/s/query_analysis_writer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/query_analysis_coordinator.cpp b/src/mongo/db/s/query_analysis_coordinator.cpp
index 61b1b1d708f..3dc0293392f 100644
--- a/src/mongo/db/s/query_analysis_coordinator.cpp
+++ b/src/mongo/db/s/query_analysis_coordinator.cpp
@@ -65,7 +65,7 @@ QueryAnalysisCoordinator* QueryAnalysisCoordinator::get(ServiceContext* serviceC
bool QueryAnalysisCoordinator::shouldRegisterReplicaSetAwareService() const {
// This is invoked when the Register above is constructed which is before FCV is set so we need
// to ignore FCV when checking if the feature flag is enabled.
- return supportsCoordinatingQueryAnalysisIgnoreFCV();
+ return supportsCoordinatingQueryAnalysis(true /* ignoreFCV */);
}
void QueryAnalysisCoordinator::onConfigurationInsert(const BSONObj& doc) {
diff --git a/src/mongo/db/s/query_analysis_writer.cpp b/src/mongo/db/s/query_analysis_writer.cpp
index 91433f6ffea..b950920d7d3 100644
--- a/src/mongo/db/s/query_analysis_writer.cpp
+++ b/src/mongo/db/s/query_analysis_writer.cpp
@@ -205,7 +205,7 @@ QueryAnalysisWriter* QueryAnalysisWriter::get(ServiceContext* serviceContext) {
bool QueryAnalysisWriter::shouldRegisterReplicaSetAwareService() const {
// This is invoked when the Register above is constructed which is before FCV is set so we need
// to ignore FCV when checking if the feature flag is enabled.
- return analyze_shard_key::supportsPersistingSampledQueriesIgnoreFCV();
+ return supportsPersistingSampledQueries(true /* ignoreFCV */);
}
void QueryAnalysisWriter::onStartup(OperationContext* opCtx) {