summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2020-10-08 14:30:18 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-10 16:30:30 +0000
commitafbc28ca7d7e5aae4eaff1609a55af8e79ef275f (patch)
treebf10914fa035de048d69d6e7f75f41081199f22a /src/mongo/s/commands/cluster_write_cmd.cpp
parent1761282aff97de315fe1f232c780e0a9fb998799 (diff)
downloadmongo-afbc28ca7d7e5aae4eaff1609a55af8e79ef275f.tar.gz
SERVER-35069 Explain should include command being explained
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_write_cmd.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp
index 1340e023275..48d1d36d206 100644
--- a/src/mongo/s/commands/cluster_write_cmd.cpp
+++ b/src/mongo/s/commands/cluster_write_cmd.cpp
@@ -596,8 +596,12 @@ private:
_commandOpWrite(
opCtx, _batchedRequest.getNS(), explainCmd, targetingBatchItem, &shardResponses);
auto bodyBuilder = result->getBodyBuilder();
- uassertStatusOK(ClusterExplain::buildExplainResult(
- opCtx, shardResponses, ClusterExplain::kWriteOnShards, timer.millis(), &bodyBuilder));
+ uassertStatusOK(ClusterExplain::buildExplainResult(opCtx,
+ shardResponses,
+ ClusterExplain::kWriteOnShards,
+ timer.millis(),
+ _request->body,
+ &bodyBuilder));
}
NamespaceString ns() const override {