summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-02-06 07:57:41 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-06 13:22:48 +0000
commitd77297f4a454073505741ae586c885e087b30165 (patch)
tree6a4d1ff53296597a75acf25b672f9a2b30e820d6 /src/mongo/db/commands/pipeline_command.cpp
parent7664a855f33bbe7e0f77cee78cb07e564a4f0c4c (diff)
downloadmongo-d77297f4a454073505741ae586c885e087b30165.tar.gz
Revert "SERVER-53127 Let AggregationRequestHelper::parseFromBSON() return an AggregateCommand"
This reverts commit 6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92.
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 39e25705af1..341c42d1aca 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 = aggregation_request_helper::parseFromBSON(
+ const auto aggregationRequest = uassertStatusOK(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())