diff options
author | Benety Goh <benety@mongodb.com> | 2021-02-06 07:57:41 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-06 13:22:48 +0000 |
commit | d77297f4a454073505741ae586c885e087b30165 (patch) | |
tree | 6a4d1ff53296597a75acf25b672f9a2b30e820d6 /src/mongo/db/commands/find_cmd.cpp | |
parent | 7664a855f33bbe7e0f77cee78cb07e564a4f0c4c (diff) | |
download | mongo-d77297f4a454073505741ae586c885e087b30165.tar.gz |
Revert "SERVER-53127 Let AggregationRequestHelper::parseFromBSON() return an AggregateCommand"
This reverts commit 6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92.
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index a26fbf4f343..32c6cdcb0b8 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -274,11 +274,11 @@ public: auto viewAggCmd = OpMsgRequest::fromDBAndBody(_dbName, viewAggregationCommand).body; // Create the agg request equivalent of the find operation, with the explain // verbosity included. - auto aggRequest = aggregation_request_helper::parseFromBSON( + auto aggRequest = uassertStatusOK(aggregation_request_helper::parseFromBSON( nss, viewAggCmd, verbosity, - APIParameters::get(opCtx).getAPIStrict().value_or(false)); + APIParameters::get(opCtx).getAPIStrict().value_or(false))); try { // An empty PrivilegeVector is acceptable because these privileges are only |