Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Optimize RESTCONF module/node parsing"
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
messages
/
RequestVote.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVote.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVote.java
index 5828e439eba2bbc78387a06a46af806439394891..981da17ce143389b75e8303b4bde9fd9fd582ad1 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVote.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVote.java
@@
-11,10
+11,7
@@
package org.opendaylight.controller.cluster.raft.messages;
/**
* Invoked by candidates to gather votes (§5.2).
*/
/**
* Invoked by candidates to gather votes (§5.2).
*/
-public class RequestVote {
-
- // candidate’s term
- private final long term;
+public class RequestVote extends AbstractRaftRPC{
// candidate requesting vote
private final String candidateId;
// candidate requesting vote
private final String candidateId;
@@
-27,7
+24,7
@@
public class RequestVote {
public RequestVote(long term, String candidateId, long lastLogIndex,
long lastLogTerm) {
public RequestVote(long term, String candidateId, long lastLogIndex,
long lastLogTerm) {
-
this.term = term
;
+
super(term)
;
this.candidateId = candidateId;
this.lastLogIndex = lastLogIndex;
this.lastLogTerm = lastLogTerm;
this.candidateId = candidateId;
this.lastLogIndex = lastLogIndex;
this.lastLogTerm = lastLogTerm;