diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-01-15 14:53:40 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-15 23:30:31 +0000 |
commit | bc942ef3f9e7bb0c92147abe9bd680b62ee837c1 (patch) | |
tree | ce90dd141cfc630c8386d62e0a0d268655c20334 /src/mongo/db/commands/user_management_commands.cpp | |
parent | 4c9d8a724f85f9bee154397e2ba93e8fee2cd5d5 (diff) | |
download | mongo-bc942ef3f9e7bb0c92147abe9bd680b62ee837c1.tar.gz |
SERVER-53499 Handle UMC commands with requireApiVersion and standalone mongod
Diffstat (limited to 'src/mongo/db/commands/user_management_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/user_management_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/user_management_commands.cpp b/src/mongo/db/commands/user_management_commands.cpp index 0d3387048fb..bdbf0d89c2c 100644 --- a/src/mongo/db/commands/user_management_commands.cpp +++ b/src/mongo/db/commands/user_management_commands.cpp @@ -883,7 +883,7 @@ private: _sessionInfo.serialize(cmdBuilder); } - if (_state == TransactionState::kInit) { + if (_state == TransactionState::kInit || !_isReplSet) { // Set a default apiVersion for all UMC commands cmdBuilder->append("apiVersion", kOne); } |