diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-06-22 17:52:14 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-06-22 17:52:14 -0400 |
commit | 669a3c4c28b74d8a68f1556c9e185439380be61a (patch) | |
tree | f0dc5ab58a93c600a62bbc9070f05f841f6a992b /src/mongo/db/repl/replication_consistency_markers.h | |
parent | 19fb2eca839609a0b6d34faa11daee381f4eeff4 (diff) | |
download | mongo-669a3c4c28b74d8a68f1556c9e185439380be61a.tar.gz |
SERVER-29254 move OplogTruncateAfterPoint into its own collection
Diffstat (limited to 'src/mongo/db/repl/replication_consistency_markers.h')
-rw-r--r-- | src/mongo/db/repl/replication_consistency_markers.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_consistency_markers.h b/src/mongo/db/repl/replication_consistency_markers.h index d6cb43126cb..aadc2491b62 100644 --- a/src/mongo/db/repl/replication_consistency_markers.h +++ b/src/mongo/db/repl/replication_consistency_markers.h @@ -59,7 +59,16 @@ class StorageInterface; * ts: <Timestamp>, * t: <long long> * }, // field for 'appliedThrough' - * oplogDeleteFromPoint: <Timestamp> + * } + * + * The oplogTruncateAfterPoint document, in 'local.replset.oplogTruncateAfterPoint', is used to + * indicate how much of the oplog is consistent and where the oplog should be truncated when + * entering recovery. + * + * Example of all fields: + * { + * _id: 'oplogTruncateAfterPoint', + * oplogTruncateAfterPoint: <Timestamp> * } * * See below for explanations of each field. @@ -142,8 +151,9 @@ public: * * If null, no documents should be deleted. */ - virtual void setOplogDeleteFromPoint(OperationContext* opCtx, const Timestamp& timestamp) = 0; - virtual Timestamp getOplogDeleteFromPoint(OperationContext* opCtx) const = 0; + virtual void setOplogTruncateAfterPoint(OperationContext* opCtx, + const Timestamp& timestamp) = 0; + virtual Timestamp getOplogTruncateAfterPoint(OperationContext* opCtx) const = 0; // -------- Applied Through ---------- |