summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2022-05-03 16:56:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-09 21:30:51 +0000
commit5b6dfa169031f8e0d68d5d2ce665c4d977d06494 (patch)
tree2d410fb6fbe1462834dc6a185557662c4c5529f9
parenta13b628c6e0b5ebd047ecdf4470db88eca4be2c1 (diff)
downloadmongo-r6.0.0-rc5.tar.gz
SERVER-64911 Add create, collMod and createIndexes to list of commands to send to encryptionr6.0.0-rc5
-rw-r--r--src/mongo/shell/encrypted_dbclient_base.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/shell/encrypted_dbclient_base.h b/src/mongo/shell/encrypted_dbclient_base.h
index 8a6bab60f59..4c0a75434fb 100644
--- a/src/mongo/shell/encrypted_dbclient_base.h
+++ b/src/mongo/shell/encrypted_dbclient_base.h
@@ -67,7 +67,7 @@ constexpr uint8_t kRandomEncryptionBit = 0x02;
static constexpr auto kExplain = "explain"_sd;
-constexpr std::array<StringData, 11> kEncryptedCommands = {"aggregate"_sd,
+constexpr std::array<StringData, 14> kEncryptedCommands = {"aggregate"_sd,
"count"_sd,
"delete"_sd,
"distinct"_sd,
@@ -77,7 +77,10 @@ constexpr std::array<StringData, 11> kEncryptedCommands = {"aggregate"_sd,
"findAndModify"_sd,
"getMore"_sd,
"insert"_sd,
- "update"_sd};
+ "update"_sd,
+ "create"_sd,
+ "createIndexes"_sd,
+ "collMod"_sd};
class EncryptedDBClientBase : public DBClientBase,
public mozjs::EncryptionCallbacks,