diff options
author | Judah Schvimer <judah@mongodb.com> | 2018-03-20 15:30:00 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-03-20 15:30:00 -0400 |
commit | 2ee6908f1c73dd50d6425e3462ccac2582deb2f3 (patch) | |
tree | f62b6719c1f353a26bca9c91644fe490542835d7 /src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h | |
parent | 56b93cc67319cfb85fc8fdae36549bcbc0701065 (diff) | |
download | mongo-2ee6908f1c73dd50d6425e3462ccac2582deb2f3.tar.gz |
SERVER-33743 Use all_committed to set lastApplied on primary nodes
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h b/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h index ac3bdc03c2c..cfa444d0b37 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h @@ -78,6 +78,10 @@ public: void waitForAllEarlierOplogWritesToBeVisible(const WiredTigerRecordStore* oplogRecordStore, OperationContext* opCtx) const; + // Returns the all committed timestamp. All transactions with timestamps earlier than the + // all committed timestamp are committed. + uint64_t fetchAllCommittedValue(OperationContext* opCtx); + private: void _oplogJournalThreadLoop(WiredTigerSessionCache* sessionCache, WiredTigerRecordStore* oplogRecordStore) noexcept; |