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/s/commands/cluster_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/s/commands/cluster_find_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_find_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_find_cmd.cpp b/src/mongo/s/commands/cluster_find_cmd.cpp index 1199afe30ad..813bee06bad 100644 --- a/src/mongo/s/commands/cluster_find_cmd.cpp +++ b/src/mongo/s/commands/cluster_find_cmd.cpp @@ -198,11 +198,11 @@ public: auto viewAggregationCommand = OpMsgRequest::fromDBAndBody(_dbName, aggCmdOnView).body; - auto aggRequestOnView = aggregation_request_helper::parseFromBSON( + auto aggRequestOnView = uassertStatusOK(aggregation_request_helper::parseFromBSON( ns(), viewAggregationCommand, verbosity, - APIParameters::get(opCtx).getAPIStrict().value_or(false)); + APIParameters::get(opCtx).getAPIStrict().value_or(false))); // An empty PrivilegeVector is acceptable because these privileges are only checked // on getMore and explain will not open a cursor. @@ -264,11 +264,11 @@ public: auto viewAggregationCommand = OpMsgRequest::fromDBAndBody(_dbName, aggCmdOnView).body; - auto aggRequestOnView = aggregation_request_helper::parseFromBSON( + auto aggRequestOnView = uassertStatusOK(aggregation_request_helper::parseFromBSON( ns(), viewAggregationCommand, boost::none, - APIParameters::get(opCtx).getAPIStrict().value_or(false)); + APIParameters::get(opCtx).getAPIStrict().value_or(false))); auto bodyBuilder = result->getBodyBuilder(); uassertStatusOK(ClusterAggregate::retryOnViewError( |