diff options
author | Davis Haupt <davis.haupt@mongodb.com> | 2022-05-11 16:00:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-11 16:32:01 +0000 |
commit | e9ef8712950721efa7cf880e6db8b4b6638b9361 (patch) | |
tree | 2a5145a839a92f1310e7fa2349b33de6ea322b9b /src/mongo/db/fle_crud.cpp | |
parent | 5f5b619e60fd42e286a68e0e98740c269ec7db12 (diff) | |
download | mongo-e9ef8712950721efa7cf880e6db8b4b6638b9361.tar.gz |
SERVER-66366 remove encryptionInformation after rewriting update and delete requests for explain commands
Diffstat (limited to 'src/mongo/db/fle_crud.cpp')
-rw-r--r-- | src/mongo/db/fle_crud.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/fle_crud.cpp b/src/mongo/db/fle_crud.cpp index e8f15a1e8b5..993ef06e2a2 100644 --- a/src/mongo/db/fle_crud.cpp +++ b/src/mongo/db/fle_crud.cpp @@ -965,6 +965,7 @@ std::unique_ptr<BatchedCommandRequest> processFLEBatchExplain( newDeleteOp.getQ(), &getTransactionWithRetriesForMongoS)); deleteRequest.setDeletes({newDeleteOp}); + deleteRequest.getWriteCommandRequestBase().setEncryptionInformation(boost::none); return std::make_unique<BatchedCommandRequest>(deleteRequest); } else if (request.getBatchType() == BatchedCommandRequest::BatchType_Update) { auto updateRequest = request.getUpdateRequest(); @@ -976,6 +977,7 @@ std::unique_ptr<BatchedCommandRequest> processFLEBatchExplain( newUpdateOp.getQ(), &getTransactionWithRetriesForMongoS)); updateRequest.setUpdates({newUpdateOp}); + updateRequest.getWriteCommandRequestBase().setEncryptionInformation(boost::none); return std::make_unique<BatchedCommandRequest>(updateRequest); } MONGO_UNREACHABLE; |