summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r--src/mongo/db/storage/storage_engine.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h
index 72c09e125b6..edf31b874fe 100644
--- a/src/mongo/db/storage/storage_engine.h
+++ b/src/mongo/db/storage/storage_engine.h
@@ -473,6 +473,12 @@ public:
std::shared_ptr<Ident> ident) = 0;
/**
+ * Called when the checkpoint thread instructs the storage engine to take a checkpoint. The
+ * underlying storage engine must take a checkpoint at this point.
+ */
+ virtual void checkpoint() = 0;
+
+ /**
* Recovers the storage engine state to the last stable timestamp. "Stable" in this case
* refers to a timestamp that is guaranteed to never be rolled back. The stable timestamp
* used should be one provided by StorageEngine::setStableTimestamp().
@@ -517,6 +523,11 @@ public:
virtual void setStableTimestamp(Timestamp stableTimestamp, bool force = false) = 0;
/**
+ * Returns the stable timestamp.
+ */
+ virtual Timestamp getStableTimestamp() const = 0;
+
+ /**
* Tells the storage engine the timestamp of the data at startup. This is necessary because
* timestamps are not persisted in the storage layer.
*/