diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-04-29 19:47:42 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-05-08 14:27:27 -0400 |
commit | c5f317f59e41caffcd3972bc741abaa649229a5b (patch) | |
tree | ff30f65ab46d8cfbe9f4ff81d6a82fec0ad43b86 /src/mongo/db/repl/master_slave.cpp | |
parent | 849b8f436a5178c5be6afc2a49e9a4d1ecf5d92b (diff) | |
download | mongo-c5f317f59e41caffcd3972bc741abaa649229a5b.tar.gz |
SERVER-18227 Add a mechanism to disable document validation and start using it
This does not necessarily cover all places that need to disable validation.
Diffstat (limited to 'src/mongo/db/repl/master_slave.cpp')
-rw-r--r-- | src/mongo/db/repl/master_slave.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp index b7b6f5452d0..7d9624f8849 100644 --- a/src/mongo/db/repl/master_slave.cpp +++ b/src/mongo/db/repl/master_slave.cpp @@ -51,6 +51,7 @@ #include "mongo/db/auth/authorization_session.h" #include "mongo/db/catalog/database_catalog_entry.h" #include "mongo/db/catalog/database_holder.h" +#include "mongo/db/catalog/document_validation.h" #include "mongo/db/cloner.h" #include "mongo/db/commands.h" #include "mongo/db/db_raii.h" @@ -1327,6 +1328,7 @@ namespace repl { OperationContextImpl txn; AuthorizationSession::get(txn.getClient())->grantInternalAuthorization(); + DisableDocumentValidation validationDisabler(&txn); while ( 1 ) { try { |