protected void resetNextIndex(RaftMemberContext member, AppendResponse response) {
    long nextIndex = response.lastLogIndex() + 1;
    if (member.getLogReader().getNextIndex() != nextIndex) {
      member.getLogReader().reset(nextIndex);
      log.trace("Reset next index for {} to {}", member, nextIndex);
    }
  }
protected void resetNextIndex ( RaftMemberContext member , AppendResponse response ) { long nextIndex = response . lastLogIndex ( ) + 1 ; if ( member . getLogReader ( ) . getNextIndex ( ) != nextIndex ) { member . getLogReader ( ) . reset ( nextIndex ) ; log . trace ( "Reset next index for {} to {}" , member , nextIndex ) ; } }
Resets the next index when a response fails.