summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2019-11-06 18:37:43 +0000
committerevergreen <evergreen@mongodb.com>2019-11-06 18:37:43 +0000
commit44e56dafcbcb624417960c0c03cf5176383efe46 (patch)
tree29d50837a22ec8f44d8183d3bd426ee2ce991669 /src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
parentef94aa73d2f8b6222d90e7fc42c22be6bfabd7e4 (diff)
downloadmongo-44e56dafcbcb624417960c0c03cf5176383efe46.tar.gz
SERVER-43018 Transactions that perform untimestamped reads should check min visible snapshot for any pending catalog changes in collection and index entries.
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h5
1 files changed, 5 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 3217be3f8f5..fcfe187d378 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h
@@ -138,6 +138,10 @@ public:
void setRoundUpPreparedTimestamps(bool value) override;
+ void setCatalogConflictingTimestamp(Timestamp timestamp) override;
+
+ Timestamp getCatalogConflictingTimestamp() const override;
+
void setTimestampReadSource(ReadSource source,
boost::optional<Timestamp> provided = boost::none) override;
@@ -254,6 +258,7 @@ private:
boost::optional<Timestamp> _lastTimestampSet;
Timestamp _majorityCommittedSnapshot;
Timestamp _readAtTimestamp;
+ Timestamp _catalogConflictTimestamp;
std::unique_ptr<Timer> _timer;
bool _isOplogReader = false;
boost::optional<int64_t> _oplogVisibleTs = boost::none;