summaryrefslogtreecommitdiff
path: root/src/mongo/db/fle_query_interface_mock.cpp
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@mongodb.com>2022-05-26 14:44:55 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-17 22:40:09 +0000
commitcc2a4dffbaed59cf50a0dec5b23ec124622f1240 (patch)
tree40c80791810744bcde9173ad3eb36f4c863faa39 /src/mongo/db/fle_query_interface_mock.cpp
parent4817d3fda9bc9a4594beec01ba2244523d695e87 (diff)
downloadmongo-cc2a4dffbaed59cf50a0dec5b23ec124622f1240.tar.gz
SERVER-66662 Block insertion into __safeContent__
Diffstat (limited to 'src/mongo/db/fle_query_interface_mock.cpp')
-rw-r--r--src/mongo/db/fle_query_interface_mock.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/fle_query_interface_mock.cpp b/src/mongo/db/fle_query_interface_mock.cpp
index 2aeb39788dd..b5ca4e1e9cd 100644
--- a/src/mongo/db/fle_query_interface_mock.cpp
+++ b/src/mongo/db/fle_query_interface_mock.cpp
@@ -54,7 +54,11 @@ uint64_t FLEQueryInterfaceMock::countDocuments(const NamespaceString& nss) {
}
StatusWith<write_ops::InsertCommandReply> FLEQueryInterfaceMock::insertDocument(
- const NamespaceString& nss, BSONObj obj, StmtId* pStmtId, bool translateDuplicateKey) {
+ const NamespaceString& nss,
+ BSONObj obj,
+ StmtId* pStmtId,
+ bool translateDuplicateKey,
+ bool bypassDocumentValidation) {
repl::TimestampedBSONObj tb;
tb.obj = obj;
@@ -132,9 +136,7 @@ std::pair<write_ops::UpdateCommandReply, BSONObj> FLEQueryInterfaceMock::updateW
}
write_ops::UpdateCommandReply FLEQueryInterfaceMock::update(
- const NamespaceString& nss,
- int32_t stmtId,
- const write_ops::UpdateCommandRequest& updateRequest) {
+ const NamespaceString& nss, int32_t stmtId, write_ops::UpdateCommandRequest& updateRequest) {
auto [reply, _] = updateWithPreimage(nss, EncryptionInformation(), updateRequest);
return reply;
}