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
index d40589ad2bc26c7444306dd25e20c7e8f9c65a54..123d206d05b9e20742a3c45aba6b2f5bf692d09d 100644 (file)
@@ -27,9 +27,9 @@ public interface FollowerLogInformation {
     /**
      * Decrements the value of the follower's next index.
      *
-     * @return the new value of nextIndex,
+     * @return true 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.