diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-07-01 17:18:45 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-07-07 10:38:08 -0400 |
commit | bbcf151c248fde365755a07d88af4fdc401cf5ac (patch) | |
tree | a1050ae68031bce7b8dbbe251fa9be5ebc5f9c48 /src/mongo/db/repl/replication_coordinator_mock.h | |
parent | 47b6b1a8fd60b0365f72c0550269c0dc0322acfd (diff) | |
download | mongo-bbcf151c248fde365755a07d88af4fdc401cf5ac.tar.gz |
SERVER-19234 Move tracking of snapshots to ReplicationCoordinator from ExternalState
This allows blessing a snapshot as committed if it is created after its
OpTime has been marked as committed.
This commit also resolves SERVER-19208 (read committed on secondaries) by
unifying the code to advance the commit point on both primaries and
secondaries.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_mock.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_mock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_mock.h b/src/mongo/db/repl/replication_coordinator_mock.h index 4169a8ee5f0..65c4a22a81a 100644 --- a/src/mongo/db/repl/replication_coordinator_mock.h +++ b/src/mongo/db/repl/replication_coordinator_mock.h @@ -202,6 +202,8 @@ public: virtual Status updateTerm(long long term); + virtual void onSnapshotCreate(OpTime timeOfSnapshot); + private: const ReplSettings _settings; MemberState _memberState; |