summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_count_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_count_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_count_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_count_cmd.cpp b/src/mongo/s/commands/cluster_count_cmd.cpp
index 48545c7c0d7..04aa145b3d7 100644
--- a/src/mongo/s/commands/cluster_count_cmd.cpp
+++ b/src/mongo/s/commands/cluster_count_cmd.cpp
@@ -139,6 +139,7 @@ public:
uassertStatusOK(countCommandAsAggregationCommand(countRequest, nss));
auto aggCmdOnViewObj = OpMsgRequest::fromDBAndBody(nss.db(), aggCmdOnView).body;
auto aggRequestOnView = aggregation_request_helper::parseFromBSON(
+ opCtx,
nss,
aggCmdOnViewObj,
boost::none,
@@ -252,6 +253,7 @@ public:
auto aggCmdOnViewObj =
OpMsgRequest::fromDBAndBody(nss.db(), aggCmdOnView.getValue()).body;
auto aggRequestOnView = aggregation_request_helper::parseFromBSON(
+ opCtx,
nss,
aggCmdOnViewObj,
verbosity,