summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
index ca57afbdd92..4afe11ac614 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
@@ -154,6 +154,12 @@ public:
ReadSource getTimestampReadSource() const override;
+ void pinReadSource() override;
+
+ void unpinReadSource() override;
+
+ bool isReadSourcePinned() const override;
+
virtual void setOrderedCommit(bool orderedCommit) override {
_orderedCommit = orderedCommit;
}
@@ -289,6 +295,8 @@ private:
// When 'true', data read from disk should not be kept in the storage engine cache.
bool _readOnce = false;
+ bool _readSourcePinned = false;
+
// The behavior of handling prepare conflicts.
PrepareConflictBehavior _prepareConflictBehavior{PrepareConflictBehavior::kEnforce};
// Dictates whether to round up prepare and commit timestamp of a prepared transaction.