summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-04-02 16:10:23 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2018-04-02 16:10:23 -0400
commitb64b512409dc84bd093d7266d5fc201177f85915 (patch)
treed3efca7ff3ac36b5aaf3bb65dc78c137fc023cef /src/mongo/db/commands.cpp
parente0ba31a5f891c5d5a9e91e23a3829339bb1d06bc (diff)
downloadmongo-b64b512409dc84bd093d7266d5fc201177f85915.tar.gz
SERVER-34109 Make sure we accept 'stmtId' for all transaction-supported commands.
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r--src/mongo/db/commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp
index 6ed410ec0bd..6ebd7f38a34 100644
--- a/src/mongo/db/commands.cpp
+++ b/src/mongo/db/commands.cpp
@@ -291,7 +291,8 @@ void CommandHelpers::filterCommandRequestForPassthrough(BSONObjIterator* cmdIter
name == "readConcern" || //
name == "writeConcern" || //
name == "lsid" || //
- name == "txnNumber") {
+ name == "txnNumber" || //
+ name == "stmtId") {
// This is the whitelist of generic arguments that commands can be trusted to blindly
// forward to the shards.
requestBuilder->append(elem);