summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
authorwenqinYe <wenqin908@gmail.com>2022-11-01 15:52:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-01 16:25:14 +0000
commit52622f9c3cc14aee28efcec2376fc06edb20ebdb (patch)
tree5a21e71cea5379807d572d6a9bc6ef905e02b387 /src/mongo/s/commands/cluster_write_cmd.cpp
parentf9ce2b3836f6662587e27739948fdf0b839fca91 (diff)
downloadmongo-52622f9c3cc14aee28efcec2376fc06edb20ebdb.tar.gz
SERVER-70745 explain command for cluster delete results in error when on shardsvr mongod
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_write_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp
index 4bcf8cb07c4..45dcd81274a 100644
--- a/src/mongo/s/commands/cluster_write_cmd.cpp
+++ b/src/mongo/s/commands/cluster_write_cmd.cpp
@@ -651,7 +651,7 @@ void ClusterWriteCmd::InvocationBase::run(OperationContext* opCtx,
void ClusterWriteCmd::InvocationBase::explain(OperationContext* opCtx,
ExplainOptions::Verbosity verbosity,
rpc::ReplyBuilderInterface* result) {
- preRunImplHook(opCtx);
+ preExplainImplHook(opCtx);
uassert(ErrorCodes::InvalidLength,
"explained write batches must be of size 1",