summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2021-06-02 10:48:54 -0700
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-15 18:10:41 +0000
commit127036e004966e88807034eb1fe4f690f23b0e01 (patch)
tree778aed792bd5286baf7750980e3c4055ca7b5ac8
parenteeb89788e7d7fb8a4923e20bd876448126c84b25 (diff)
downloadmongo-127036e004966e88807034eb1fe4f690f23b0e01.tar.gz
SERVER-46638 Investigate RWC default implications for FLE in the shell
(cherry picked from commit c63c85e2a0535ead596dd06fac71aa97976a3b76)
-rw-r--r--src/mongo/shell/encrypted_dbclient_base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/encrypted_dbclient_base.cpp b/src/mongo/shell/encrypted_dbclient_base.cpp
index 5eb9f8f8c7e..5a33892cd3c 100644
--- a/src/mongo/shell/encrypted_dbclient_base.cpp
+++ b/src/mongo/shell/encrypted_dbclient_base.cpp
@@ -629,7 +629,8 @@ std::shared_ptr<SymmetricKey> EncryptedDBClientBase::getDataKey(const UUID& uuid
std::shared_ptr<SymmetricKey> EncryptedDBClientBase::getDataKeyFromDisk(const UUID& uuid) {
NamespaceString fullNameNS = getCollectionNS();
- BSONObj dataKeyObj = _conn->findOne(fullNameNS.ns(), QUERY("_id" << uuid));
+ BSONObj dataKeyObj = _conn->findOne(
+ fullNameNS.ns(), QUERY("_id" << uuid), nullptr, 0, repl::ReadConcernArgs::kImplicitDefault);
if (dataKeyObj.isEmpty()) {
uasserted(ErrorCodes::BadValue, "Invalid keyID.");
}