summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/master_slave.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-04-29 19:47:42 -0400
committerMathias Stearn <mathias@10gen.com>2015-05-08 14:27:27 -0400
commitc5f317f59e41caffcd3972bc741abaa649229a5b (patch)
treeff30f65ab46d8cfbe9f4ff81d6a82fec0ad43b86 /src/mongo/db/repl/master_slave.cpp
parent849b8f436a5178c5be6afc2a49e9a4d1ecf5d92b (diff)
downloadmongo-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.cpp2
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 {