Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 8206: Prevent decr follower next index beyong -1
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
FollowerLogInformation.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
index d40589ad2bc26c7444306dd25e20c7e8f9c65a54..123d206d05b9e20742a3c45aba6b2f5bf692d09d 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
@@
-27,9
+27,9
@@
public interface FollowerLogInformation {
/**
* Decrements the value of the follower's next index.
*
/**
* Decrements the value of the follower's next index.
*
- * @return t
he new value of nextIndex,
+ * @return t
rue if the next index was decremented, ie it was previously >= 0, false otherwise.
*/
*/
-
long
decrNextIndex();
+
boolean
decrNextIndex();
/**
* Sets the index of the follower's next log entry.
/**
* Sets the index of the follower's next log entry.