summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/apply_ops.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-04-08 20:00:32 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2019-04-08 20:00:39 -0400
commitb0d0de6a13a05c64e9e26392448e68303ccd69d5 (patch)
tree4dbe8249b06a907e9ea60235fcb867e978d244c9 /src/mongo/db/repl/apply_ops.cpp
parent07bcfd825c6ad2c347329af1a1b7634029048871 (diff)
downloadmongo-b0d0de6a13a05c64e9e26392448e68303ccd69d5.tar.gz
SERVER-39790 Reconstruct prepared transactions from new oplog format on startup
Diffstat (limited to 'src/mongo/db/repl/apply_ops.cpp')
-rw-r--r--src/mongo/db/repl/apply_ops.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/repl/apply_ops.cpp b/src/mongo/db/repl/apply_ops.cpp
index b3732a99a52..c10e5165f74 100644
--- a/src/mongo/db/repl/apply_ops.cpp
+++ b/src/mongo/db/repl/apply_ops.cpp
@@ -478,12 +478,9 @@ Status applyApplyOpsOplogEntry(OperationContext* opCtx,
&resultWeDontCareAbout);
}
-Status applyRecoveredPrepareTransaction(OperationContext* opCtx, const OplogEntry& entry) {
- // Snapshot transactions never conflict with the PBWM lock.
- invariant(!opCtx->lockState()->shouldConflictWithSecondaryBatchApplication());
- // we might replay a prepared transaction behind oldest timestamp.
+Status applyRecoveredPrepareApplyOpsOplogEntry(OperationContext* opCtx, const OplogEntry& entry) {
+ // We might replay a prepared transaction behind oldest timestamp.
opCtx->recoveryUnit()->setRoundUpPreparedTimestamps(true);
- UnreplicatedWritesBlock uwb(opCtx);
return _applyPrepareTransaction(opCtx, entry, OplogApplication::Mode::kRecovering);
}