szetszwo commented on code in PR #845:
URL: https://github.com/apache/ratis/pull/845#discussion_r1130224613


##########
ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java:
##########
@@ -684,16 +685,16 @@ private synchronized void 
sendStartLeaderElection(RaftPeerId follower, TermIndex
     });
   }
 
+  boolean isFollowerUpToDate(FollowerInfo followerInfo) {
+    final TermIndex leaderLastEntry = server.getState().getLastEntry();

Review Comment:
   It should not call getLastEntry() two times.



-- 
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