summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index a7096773104..54ecc3df1ab 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -79,7 +79,6 @@ public:
}
void run(OperationContext* opCtx, rpc::ReplyBuilderInterface* reply) override {
- auto bob = reply->getBodyBuilder();
const auto aggregationRequest = uassertStatusOK(
AggregationRequest::parseFromBSON(_dbName, _request.body, boost::none));
@@ -87,7 +86,7 @@ public:
aggregationRequest.getNamespaceString(),
aggregationRequest,
_request.body,
- bob));
+ reply));
}
NamespaceString ns() const override {
@@ -96,7 +95,7 @@ public:
void explain(OperationContext* opCtx,
ExplainOptions::Verbosity verbosity,
- BSONObjBuilder* out) override {
+ rpc::ReplyBuilderInterface* result) override {
const auto aggregationRequest = uassertStatusOK(
AggregationRequest::parseFromBSON(_dbName, _request.body, verbosity));
@@ -104,7 +103,7 @@ public:
aggregationRequest.getNamespaceString(),
aggregationRequest,
_request.body,
- *out));
+ result));
}
void doCheckAuthorization(OperationContext* opCtx) const override {