diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-04-24 04:04:43 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-04-30 05:39:07 -0400 |
commit | 5a59debb349c34397a405e92d41e0ece433d7ba4 (patch) | |
tree | e054cf655761260c5665cc9b7230c071c8a62323 /src/mongo/db/repl/topology_coordinator.h | |
parent | 7cd6f825684fe97fae9b822deead422a6903c7ef (diff) | |
download | mongo-5a59debb349c34397a405e92d41e0ece433d7ba4.tar.gz |
SERVER-18252 ElectionWinnerDeclarer class created
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/topology_coordinator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/topology_coordinator.h b/src/mongo/db/repl/topology_coordinator.h index 3c97e64be29..595138a20e7 100644 --- a/src/mongo/db/repl/topology_coordinator.h +++ b/src/mongo/db/repl/topology_coordinator.h @@ -366,6 +366,15 @@ namespace repl { */ virtual void summarizeAsHtml(ReplSetHtmlSummary* output) = 0; + /** + * Determines whether or not the newly elected primary is valid from our perspective. + * If it is, sets the _currentPrimaryIndex and term to the received values. + * If it is not, return ErrorCode::BadValue and the current term from our perspective. + * Populate responseTerm with the current term from our perspective. + */ + virtual Status processReplSetDeclareElectionWinner( + const ReplSetDeclareElectionWinnerArgs& args, + long long* responseTerm) = 0; protected: TopologyCoordinator() {} |