diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-11-06 18:37:43 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-06 18:37:43 +0000 |
commit | 44e56dafcbcb624417960c0c03cf5176383efe46 (patch) | |
tree | 29d50837a22ec8f44d8183d3bd426ee2ce991669 /src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h | |
parent | ef94aa73d2f8b6222d90e7fc42c22be6bfabd7e4 (diff) | |
download | mongo-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.h | 5 |
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; |