summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_pipeline_cmd_s.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-04-22 19:42:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-22 20:12:32 +0000
commit90d6271d2f663a4aaf633de5e362972e50e90c21 (patch)
treed24da0cee090d7d92972fa8f43fa4f0eb41ac915 /src/mongo/s/commands/cluster_pipeline_cmd_s.cpp
parent983a7174c6d792049ef0f54e36a55f93801df89c (diff)
downloadmongo-90d6271d2f663a4aaf633de5e362972e50e90c21.tar.gz
SERVER-60761 Move the global read-only flag to be an OperationContext function
Diffstat (limited to 'src/mongo/s/commands/cluster_pipeline_cmd_s.cpp')
-rw-r--r--src/mongo/s/commands/cluster_pipeline_cmd_s.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_pipeline_cmd_s.cpp b/src/mongo/s/commands/cluster_pipeline_cmd_s.cpp
index 3009d9265e6..d099095fe96 100644
--- a/src/mongo/s/commands/cluster_pipeline_cmd_s.cpp
+++ b/src/mongo/s/commands/cluster_pipeline_cmd_s.cpp
@@ -54,11 +54,15 @@ struct ClusterPipelineCommandS {
}
static AggregateCommandRequest parseAggregationRequest(
+ OperationContext* opCtx,
const OpMsgRequest& opMsgRequest,
boost::optional<ExplainOptions::Verbosity> explainVerbosity,
bool apiStrict) {
- return aggregation_request_helper::parseFromBSON(
- opMsgRequest.getDatabase().toString(), opMsgRequest.body, explainVerbosity, apiStrict);
+ return aggregation_request_helper::parseFromBSON(opCtx,
+ opMsgRequest.getDatabase().toString(),
+ opMsgRequest.body,
+ explainVerbosity,
+ apiStrict);
}
};
ClusterPipelineCommandBase<ClusterPipelineCommandS> clusterPipelineCmdS;