ivandika3 commented on code in PR #1420:
URL: https://github.com/apache/ratis/pull/1420#discussion_r3027099722


##########
ratis-server/src/main/java/org/apache/ratis/server/leader/LogAppenderBase.java:
##########
@@ -238,6 +217,15 @@ public AppendEntriesRequestProto 
newAppendEntriesRequest(long callId, boolean he
     final long snapshotIndex = follower.getSnapshotIndex();
     final long leaderNext = getRaftLog().getNextIndex();
     final long followerNext = follower.getNextIndex();

Review Comment:
   Seems `getNextIndex` is called twice in this method, we might need to call 
it only once per method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to