summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_mock.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-07-01 17:18:45 -0400
committerMathias Stearn <mathias@10gen.com>2015-07-07 10:38:08 -0400
commitbbcf151c248fde365755a07d88af4fdc401cf5ac (patch)
treea1050ae68031bce7b8dbbe251fa9be5ebc5f9c48 /src/mongo/db/repl/replication_coordinator_mock.h
parent47b6b1a8fd60b0365f72c0550269c0dc0322acfd (diff)
downloadmongo-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.h2
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;