summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_consistency_markers.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-12-13 12:39:47 -0500
committerJudah Schvimer <judah@mongodb.com>2017-12-13 12:39:47 -0500
commit6796859387ba77a3556ed583a317681a288970e4 (patch)
tree64dfff38f225a714d83533c8952198d067792e77 /src/mongo/db/repl/replication_consistency_markers.h
parent4d53b4beb00eaa341bf2a134fbc9366d3333e830 (diff)
downloadmongo-6796859387ba77a3556ed583a317681a288970e4.tar.gz
SERVER-30926 Add timestamps to writes to minValid document
Diffstat (limited to 'src/mongo/db/repl/replication_consistency_markers.h')
-rw-r--r--src/mongo/db/repl/replication_consistency_markers.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_consistency_markers.h b/src/mongo/db/repl/replication_consistency_markers.h
index 96ea46b68c7..2bf12adb0db 100644
--- a/src/mongo/db/repl/replication_consistency_markers.h
+++ b/src/mongo/db/repl/replication_consistency_markers.h
@@ -176,12 +176,16 @@ public:
* The applied through point is a persistent record of which oplog entries we've applied.
* If we crash while applying a batch of oplog entries, this OpTime tells us where to start
* applying operations on startup.
- *
- * If null, the applied through point is the top of the oplog.
*/
virtual void setAppliedThrough(OperationContext* opCtx, const OpTime& optime) = 0;
/**
+ * Unsets the applied through OpTime at the given 'writeTimestamp'.
+ * Once cleared, the applied through point is the top of the oplog.
+ */
+ virtual void clearAppliedThrough(OperationContext* opCtx, const Timestamp& writeTimestamp) = 0;
+
+ /**
* You should probably be calling ReplicationCoordinator::getLastAppliedOpTime() instead.
*
* This reads the value from storage which isn't always updated when the ReplicationCoordinator