summaryrefslogtreecommitdiff
path: root/src/mongo/s/analyze_shard_key_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/analyze_shard_key_util.cpp')
-rw-r--r--src/mongo/s/analyze_shard_key_util.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/s/analyze_shard_key_util.cpp b/src/mongo/s/analyze_shard_key_util.cpp
index 36ad137dfa2..0ebe61eab89 100644
--- a/src/mongo/s/analyze_shard_key_util.cpp
+++ b/src/mongo/s/analyze_shard_key_util.cpp
@@ -48,5 +48,14 @@ bool supportsCoordinatingQueryAnalysis() {
return isFeatureFlagEnabled() && serverGlobalParams.clusterRole == ClusterRole::ConfigServer;
}
+bool supportsPersistingSampledQueries() {
+ return isFeatureFlagEnabled() && serverGlobalParams.clusterRole == ClusterRole::ShardServer;
+}
+
+bool supportsPersistingSampledQueriesIgnoreFCV() {
+ return isFeatureFlagEnabledIgnoreFCV() &&
+ serverGlobalParams.clusterRole == ClusterRole::ShardServer;
+}
+
} // namespace analyze_shard_key
} // namespace mongo