From 0c99d93518b8647a16897a3bf1bb318221a2ccec Mon Sep 17 00:00:00 2001 From: Louis Williams Date: Fri, 31 May 2019 13:26:43 -0400 Subject: SERVER-40177 Enforce prepare conflicts on secondaries --- src/mongo/db/repl/sync_tail.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/mongo/db/repl/sync_tail.cpp') diff --git a/src/mongo/db/repl/sync_tail.cpp b/src/mongo/db/repl/sync_tail.cpp index 2f3269450c0..ac6331d02f7 100644 --- a/src/mongo/db/repl/sync_tail.cpp +++ b/src/mongo/db/repl/sync_tail.cpp @@ -1022,10 +1022,6 @@ Status multiSyncApply(OperationContext* opCtx, // Explicitly start future read transactions without a timestamp. opCtx->recoveryUnit()->setTimestampReadSource(RecoveryUnit::ReadSource::kNoTimestamp); - // TODO: SERVER-40177 This should be removed once it is guaranteed operations applied on - // secondaries cannot encounter unnecessary prepare conflicts. - opCtx->recoveryUnit()->setIgnorePrepared(true); - ApplierHelpers::stableSortByNamespace(ops); // Assume we are recovering if oplog writes are disabled in the options. -- cgit v1.2.1