summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2023-02-09 18:02:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-15 01:58:26 +0000
commitd1fbeed2f867f9c51e6f4e0c3739fcd771567fb2 (patch)
tree918a25a937b98994b7c2b167d4ac06b599cfb097
parent35ac03deb67dea23467c16acddb0fcf02eca5f1a (diff)
downloadmongo-d1fbeed2f867f9c51e6f4e0c3739fcd771567fb2.tar.gz
SERVER-73525 adding extra testing for FLE2 and NTDI
-rw-r--r--src/mongo/db/query/fle/server_rewrite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/query/fle/server_rewrite.cpp b/src/mongo/db/query/fle/server_rewrite.cpp
index 2896bb87a85..9158f5eba97 100644
--- a/src/mongo/db/query/fle/server_rewrite.cpp
+++ b/src/mongo/db/query/fle/server_rewrite.cpp
@@ -141,7 +141,7 @@ public:
RewriteBase(boost::intrusive_ptr<ExpressionContext> expCtx,
const NamespaceString& nss,
const EncryptionInformation& encryptInfo)
- : expCtx(expCtx), db(nss.db()) {
+ : expCtx(expCtx), dbName(nss.dbName()) {
auto efc = EncryptionInformationHelpers::getAndValidateSchema(nss, encryptInfo);
esc = efc.getEscCollection()->toString();
ecc = efc.getEccCollection()->toString();
@@ -154,7 +154,7 @@ public:
boost::intrusive_ptr<ExpressionContext> expCtx;
std::string esc;
std::string ecc;
- std::string db;
+ DatabaseName dbName;
};
// This class handles rewriting of an entire pipeline.
@@ -218,8 +218,8 @@ void doFLERewriteInTxn(OperationContext* opCtx,
auto txn = getTxn(opCtx);
auto swCommitResult = txn->runNoThrow(
opCtx, [sharedBlock](const txn_api::TransactionClient& txnClient, auto txnExec) {
- NamespaceString nssEsc(sharedBlock->db, sharedBlock->esc);
- NamespaceString nssEcc(sharedBlock->db, sharedBlock->ecc);
+ NamespaceString nssEsc(sharedBlock->dbName, sharedBlock->esc);
+ NamespaceString nssEcc(sharedBlock->dbName, sharedBlock->ecc);
// Construct FLE rewriter from the transaction client and encryptionInformation.
auto queryInterface = FLEQueryInterfaceImpl(txnClient, getGlobalServiceContext());