diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-12-11 09:32:04 -0500 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-12-11 09:32:28 -0500 |
commit | 1a80d3e2817f758f07fa4de722ad278df4de7ac7 (patch) | |
tree | e94c4391e339200de9b26718be6cf3712ae9254a /src/mongo/db/storage/storage_engine.h | |
parent | a89e8f0d97b860beb93d71569f2b155fee87f120 (diff) | |
download | mongo-1a80d3e2817f758f07fa4de722ad278df4de7ac7.tar.gz |
SERVER-32226: Have the oldest timestamp track the last applied optime during initial sync.
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r-- | src/mongo/db/storage/storage_engine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h index fe6a22dab44..d3ca77a3b86 100644 --- a/src/mongo/db/storage/storage_engine.h +++ b/src/mongo/db/storage/storage_engine.h @@ -329,6 +329,12 @@ public: virtual void setInitialDataTimestamp(Timestamp timestamp) {} /** + * Sets the oldest timestamp for which the storage engine must maintain snapshot history + * through. Additionally, all future writes must be newer or equal to this value. + */ + virtual void setOldestTimestamp(Timestamp timestampa) {} + + /** * Notifies the storage engine that a replication batch has completed. * This means that all the writes associated with the oplog entries in the batch are * finished and no new writes with timestamps associated with those oplog entries will show |