diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_pipeline_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_pipeline_cmd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_pipeline_cmd.cpp b/src/mongo/s/commands/cluster_pipeline_cmd.cpp index 600a0e558c3..816c94ec087 100644 --- a/src/mongo/s/commands/cluster_pipeline_cmd.cpp +++ b/src/mongo/s/commands/cluster_pipeline_cmd.cpp @@ -75,10 +75,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; return _runAggCommand(opCtx, dbname, cmdObj, verbosity, out); } |