summaryrefslogtreecommitdiff
path: root/src/mongo/s/query_analysis_sampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/query_analysis_sampler.h')
-rw-r--r--src/mongo/s/query_analysis_sampler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/query_analysis_sampler.h b/src/mongo/s/query_analysis_sampler.h
index c03d36ffd25..b8532e91397 100644
--- a/src/mongo/s/query_analysis_sampler.h
+++ b/src/mongo/s/query_analysis_sampler.h
@@ -49,7 +49,8 @@ namespace analyze_shard_key {
* on this sampler.
*
* Currently, query sampling is only supported on a sharded cluster. So a sampler must be a mongos
- * and the coordinator must be the config server's primary mongod.
+ * or a shardsvr mongod (acting as a router), and the coordinator must be the config server's
+ * primary mongod.
*/
class QueryAnalysisSampler final {
QueryAnalysisSampler(const QueryAnalysisSampler&) = delete;
@@ -203,6 +204,8 @@ public:
}
private:
+ long long _getTotalQueriesCount() const;
+
void _refreshQueryStats();
void _refreshConfigurations(OperationContext* opCtx);