summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorsamontea <merciers.merciers@gmail.com>2021-02-05 23:05:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-06 03:25:09 +0000
commit6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92 (patch)
tree9546022a87a585931702b5ba01eb467a4cf1e5e8 /src/mongo/db/commands/pipeline_command.cpp
parent1598de55e0a96db575a3945e05cbb392620d1af4 (diff)
downloadmongo-6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92.tar.gz
SERVER-53127 Let AggregationRequestHelper::parseFromBSON() return an AggregateCommand
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index 341c42d1aca..39e25705af1 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -72,11 +72,11 @@ public:
OperationContext* opCtx,
const OpMsgRequest& opMsgRequest,
boost::optional<ExplainOptions::Verbosity> explainVerbosity) override {
- const auto aggregationRequest = uassertStatusOK(aggregation_request_helper::parseFromBSON(
+ const auto aggregationRequest = aggregation_request_helper::parseFromBSON(
opMsgRequest.getDatabase().toString(),
opMsgRequest.body,
explainVerbosity,
- APIParameters::get(opCtx).getAPIStrict().value_or(false)));
+ APIParameters::get(opCtx).getAPIStrict().value_or(false));
auto privileges =
uassertStatusOK(AuthorizationSession::get(opCtx->getClient())