From 90d6271d2f663a4aaf633de5e362972e50e90c21 Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Fri, 22 Apr 2022 19:42:03 +0000 Subject: SERVER-60761 Move the global read-only flag to be an OperationContext function --- src/mongo/s/commands/cluster_pipeline_cmd_s.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/mongo/s/commands/cluster_pipeline_cmd_s.cpp') 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 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 clusterPipelineCmdS; -- cgit v1.2.1