summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
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 {