summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_find_cmd.cpp
diff options
context:
space:
mode:
authorsamontea <merciers.merciers@gmail.com>2021-02-08 19:00:08 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-08 21:18:33 +0000
commit6a5e743910ad6b2d9aea53aae046b2a0b63d3198 (patch)
tree65d4b37df29bc0cc1530513fc5d1d684339ab24f /src/mongo/s/commands/cluster_find_cmd.cpp
parent19940de8b056ec9441c97f824e7adc508b444a40 (diff)
downloadmongo-6a5e743910ad6b2d9aea53aae046b2a0b63d3198.tar.gz
SERVER-53127 Let AggregationRequestHelper::parseFromBSON() return an AggregateCommand
Diffstat (limited to 'src/mongo/s/commands/cluster_find_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_find_cmd.cpp8
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 813bee06bad..1199afe30ad 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 = uassertStatusOK(aggregation_request_helper::parseFromBSON(
+ auto aggRequestOnView = 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 = uassertStatusOK(aggregation_request_helper::parseFromBSON(
+ auto aggRequestOnView = 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(