summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier_impl.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2021-03-24 09:47:09 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-24 18:41:04 +0000
commit7c850a9595c4cc1a719c93f9328920645f9e5ff8 (patch)
treebc599867bd2270d2da2f34ca51c9929e23d968dd /src/mongo/db/repl/oplog_applier_impl.cpp
parentd18d6234db7e647b0615df8de01a027df151a97d (diff)
downloadmongo-7c850a9595c4cc1a719c93f9328920645f9e5ff8.tar.gz
SERVER-51334: Only allow the temporary resharding collection on FCV 4.7+
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl.cpp')
-rw-r--r--src/mongo/db/repl/oplog_applier_impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl.cpp b/src/mongo/db/repl/oplog_applier_impl.cpp
index 2b443cffc81..5e7e7d43e78 100644
--- a/src/mongo/db/repl/oplog_applier_impl.cpp
+++ b/src/mongo/db/repl/oplog_applier_impl.cpp
@@ -522,6 +522,7 @@ StatusWith<OpTime> OplogApplierImpl::_applyOplogBatch(OperationContext* opCtx,
// This code path is only executed on secondaries and initial syncing nodes,
// so it is safe to exclude any writes from Flow Control.
opCtx->setShouldParticipateInFlowControl(false);
+ opCtx->setEnforceConstraints(false);
status = opCtx->runWithoutInterruptionExceptAtGlobalShutdown([&] {
return applyOplogBatchPerWorker(opCtx.get(), &writer, &multikeyVector);