diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-02-15 11:49:36 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-02-15 11:49:36 -0500 |
commit | 7284884f3d8f3cf1d1489579180c2637efcc42b2 (patch) | |
tree | 7e2749c6940232f2a70a182e6856bfb0c97f2454 /src/mongo/db/repl/replication_coordinator.h | |
parent | f6006942e76377c9434a61e76a7803eb83430591 (diff) | |
download | mongo-7284884f3d8f3cf1d1489579180c2637efcc42b2.tar.gz |
SERVER-27543 Process OplogQueryMetadata with backwards and forwards compatibility
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h index a9d55d42259..a840b8e99ed 100644 --- a/src/mongo/db/repl/replication_coordinator.h +++ b/src/mongo/db/repl/replication_coordinator.h @@ -481,11 +481,16 @@ public: /** * Processes the ReplSetMetadata returned from a command run against another * replica set member and so long as the config version in the metadata matches the replica set - * config version this node currently has, updates the current term and optionally updates - * this node's notion of the commit point. + * config version this node currently has, updates the current term. + * + * This does NOT update this node's notion of the commit point. + */ + virtual void processReplSetMetadata(const rpc::ReplSetMetadata& replMetadata) = 0; + + /** + * This updates the node's notion of the commit point. */ - virtual void processReplSetMetadata(const rpc::ReplSetMetadata& replMetadata, - bool advanceCommitPoint) = 0; + virtual void advanceCommitPoint(const OpTime& committedOptime) = 0; /** * Elections under protocol version 1 are triggered by a timer. |