summaryrefslogtreecommitdiff
path: root/src/mongo/s/analyze_shard_key_role.h
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2023-03-24 00:43:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-24 01:18:29 +0000
commitf25d83eb3cab293fabd66761ddc24758607c0e54 (patch)
tree5c2dbb37b77b5af4210989af71532a9096eab2ee /src/mongo/s/analyze_shard_key_role.h
parentbe80d6d4c26b741483735259d23bbc0bf46249fa (diff)
downloadmongo-f25d83eb3cab293fabd66761ddc24758607c0e54.tar.gz
SERVER-75032 Support _refreshQueryAnalyzerConfiguration command on standalone replica sets
Diffstat (limited to 'src/mongo/s/analyze_shard_key_role.h')
-rw-r--r--src/mongo/s/analyze_shard_key_role.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/analyze_shard_key_role.h b/src/mongo/s/analyze_shard_key_role.h
index e7097c69543..d2a9bf23641 100644
--- a/src/mongo/s/analyze_shard_key_role.h
+++ b/src/mongo/s/analyze_shard_key_role.h
@@ -29,6 +29,7 @@
#pragma once
+#include "mongo/db/operation_context.h"
#include "mongo/platform/basic.h"
namespace mongo {
@@ -36,7 +37,8 @@ namespace analyze_shard_key {
bool isFeatureFlagEnabled(bool ignoreFCV = false);
-bool supportsCoordinatingQueryAnalysis(bool ignoreFCV = false);
+bool supportsCoordinatingQueryAnalysis(bool isReplEnabled, bool ignoreFCV = false);
+bool supportsCoordinatingQueryAnalysis(OperationContext* opCtx, bool ignoreFCV = false);
bool supportsPersistingSampledQueries(bool ignoreFCV = false);