summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-03-05 15:48:48 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-03-06 10:04:53 -0500
commite3a3f54a6c0ec4f471e0aff7a48b8a30f8c0e9cb (patch)
tree9c2f4ac5a4d8751336397c8af59a08bf78f1c201 /src/mongo/db/commands/pipeline_command.cpp
parent5dfa372b25b1a26bb12e09fdb029ff219b0f5343 (diff)
downloadmongo-e3a3f54a6c0ec4f471e0aff7a48b8a30f8c0e9cb.tar.gz
SERVER-33065 CommandReplyBuilder and CommandInvocation
Revert "Revert "SERVER-33065 CommandReplyBuilder and CommandInvocation"" This reverts commit 74177edb35b6ce7594e4751051010ceade592484. Leave out the unintentional repl/ change this time.
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index 32ede313ee5..c37d19bd12c 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -96,10 +96,11 @@ public:
}
Status explain(OperationContext* opCtx,
- const std::string& dbname,
- const BSONObj& cmdObj,
+ const OpMsgRequest& request,
ExplainOptions::Verbosity verbosity,
BSONObjBuilder* out) const override {
+ std::string dbname = request.getDatabase().toString();
+ const BSONObj& cmdObj = request.body;
const auto aggregationRequest =
uassertStatusOK(AggregationRequest::parseFromBSON(dbname, cmdObj, verbosity));