summaryrefslogtreecommitdiff
path: root/src/mongo/executor
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-11-10 19:05:39 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-11 20:59:09 +0000
commitcb0deac8d70bd1927546f751526441daaabd55ec (patch)
tree854f458659f3aa7e7f21ec7a109e703626061c89 /src/mongo/executor
parent89ccc78087189593e275a9d4852d85287fe104fd (diff)
downloadmongo-cb0deac8d70bd1927546f751526441daaabd55ec.tar.gz
SERVER-52748 Fix txn-continuing cmds with API params via mongos
Diffstat (limited to 'src/mongo/executor')
-rw-r--r--src/mongo/executor/remote_command_request.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/executor/remote_command_request.cpp b/src/mongo/executor/remote_command_request.cpp
index 4c35525e6a9..8eb623cde61 100644
--- a/src/mongo/executor/remote_command_request.cpp
+++ b/src/mongo/executor/remote_command_request.cpp
@@ -87,7 +87,8 @@ RemoteCommandRequestBase::RemoteCommandRequestBase(RequestId requestId,
cmdObj = cmdObj.addField(BSON("clientOperationKey" << operationKey.get()).firstElement());
}
- if (opCtx && APIParameters::get(opCtx).getParamsPassed()) {
+ if (opCtx && APIParameters::get(opCtx).getParamsPassed() &&
+ !opCtx->isContinuingMultiDocumentTransaction()) {
BSONObjBuilder bob(std::move(cmdObj));
APIParameters::get(opCtx).appendInfo(&bob);
cmdObj = bob.obj();