summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-02-27 15:14:14 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-03-02 16:31:01 -0500
commitad94e51e0dd40b0d0c38215a36caf75a4be48415 (patch)
tree8f621add05d506f88c23e64260780919e1f2d60e /src/mongo/db/commands/pipeline_command.cpp
parentae20f392b61ddc90d2191856e76940ca3c7a3ed2 (diff)
downloadmongo-ad94e51e0dd40b0d0c38215a36caf75a4be48415.tar.gz
SERVER-33065 CommandReplyBuilder and CommandInvocation
remove publicRun from mr_test.cpp change explain to take OpMsgRequest private explain private allowsAfterClusterTime private supportsWriteConcern supportsReadConcern remove publicRun cluster_explain_cmd.cpp: do not inject "$db" field. let explain() exceptions escape update cluster distinct explain
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));