summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_count_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_count_cmd.h')
-rw-r--r--src/mongo/s/commands/cluster_count_cmd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_count_cmd.h b/src/mongo/s/commands/cluster_count_cmd.h
index 1325c89a21e..045b1895728 100644
--- a/src/mongo/s/commands/cluster_count_cmd.h
+++ b/src/mongo/s/commands/cluster_count_cmd.h
@@ -152,7 +152,9 @@ public:
Shard::RetryPolicy::kIdempotent,
countRequest.getQuery(),
collation,
- true /* eligibleForSampling */);
+ boost::none /*letParameters*/,
+ boost::none /*runtimeConstants*/,
+ true /*eligibleForSampling*/);
} catch (const ExceptionFor<ErrorCodes::CommandOnShardedViewNotSupportedOnMongod>& ex) {
// Rewrite the count command as an aggregation.
auto countRequest = CountCommandRequest::parse(IDLParserContext("count"), cmdObj);
@@ -260,7 +262,9 @@ public:
ReadPreferenceSetting::get(opCtx),
Shard::RetryPolicy::kIdempotent,
targetingQuery,
- targetingCollation);
+ targetingCollation,
+ boost::none /*letParameters*/,
+ boost::none /*runtimeConstants*/);
} catch (const ExceptionFor<ErrorCodes::CommandOnShardedViewNotSupportedOnMongod>& ex) {
CountCommandRequest countRequest(NamespaceStringOrUUID(NamespaceString{}));
try {