summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2021-11-23 14:44:21 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-24 16:31:40 +0000
commit8038337502c8ebde9ceeb7a3eae2f93e2e1235d1 (patch)
tree31aeab2dddbe7091c54c97d2fb9bbfe47dd27e2e /src/mongo/db/op_observer_impl.cpp
parent0b765cf01037b10a33da469f6fb273e890499083 (diff)
downloadmongo-8038337502c8ebde9ceeb7a3eae2f93e2e1235d1.tar.gz
SERVER-59647: Test maximum client document size thresholds specfically for retryable findAndModify.
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r--src/mongo/db/op_observer_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp
index a07a08abbde..0379faec956 100644
--- a/src/mongo/db/op_observer_impl.cpp
+++ b/src/mongo/db/op_observer_impl.cpp
@@ -40,6 +40,7 @@
#include "mongo/db/catalog/collection_options.h"
#include "mongo/db/catalog/database.h"
#include "mongo/db/catalog/database_holder.h"
+#include "mongo/db/catalog/document_validation.h"
#include "mongo/db/catalog/import_collection_oplog_entry_gen.h"
#include "mongo/db/catalog_raii.h"
#include "mongo/db/commands/txn_cmds_gen.h"
@@ -300,6 +301,8 @@ void writeToImageCollection(OperationContext* opCtx,
imageEntry.setImage(dataImage);
repl::UnreplicatedWritesBlock unreplicated(opCtx);
+ DisableDocumentValidation documentValidationDisabler(
+ opCtx, DocumentValidationSettings::kDisableInternalValidation);
// In practice, this lock acquisition on kConfigImagesNamespace cannot block. The only time a
// stronger lock acquisition is taken on this namespace is during step up to create the