diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-03-20 13:18:07 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-04-13 10:48:56 -0400 |
commit | 10bcc73a75ac857c290c3af6a3f89a45c4867043 (patch) | |
tree | ee4612c4807e4232f3242589f2d70bd9e6cbf4ab /src/mongo/db/repl/replication_coordinator_external_state.h | |
parent | 235858ceee5d209d5e10579b79cfdc3bad7ff877 (diff) | |
download | mongo-10bcc73a75ac857c290c3af6a3f89a45c4867043.tar.gz |
SERVER-34192 Allow secondary reads during batch applications
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state.h b/src/mongo/db/repl/replication_coordinator_external_state.h index 5ab2ab1c20f..b9cd7dee465 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state.h +++ b/src/mongo/db/repl/replication_coordinator_external_state.h @@ -249,6 +249,13 @@ public: virtual void updateCommittedSnapshot(const OpTime& newCommitPoint) = 0; /** + * Updates the local snapshot to a consistent point for secondary reads. + * + * It is illegal to call with a optime that does not name an existing snapshot. + */ + virtual void updateLocalSnapshot(const OpTime& optime) = 0; + + /** * Returns whether or not the SnapshotThread is active. */ virtual bool snapshotsEnabled() const = 0; |