szetszwo commented on code in PR #735:
URL: https://github.com/apache/ratis/pull/735#discussion_r963226184
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java:
##########
@@ -1110,8 +1109,9 @@ CompletableFuture<Long> getReadIndex() {
}
@Override
- public void onAppendEntriesReply(FollowerInfo follower,
RaftProtos.AppendEntriesReplyProto reply) {
- server.getState().getReadRequests().onAppendEntriesReply(reply,
this::hasMajority);
+ public void onAppendEntriesReply(LogAppender appender, FollowerInfo follower,
+ RaftProtos.AppendEntriesReplyProto reply) {
+ server.getState().getReadRequests().onAppendEntriesReply(appender, reply,
this::hasMajority);
Review Comment:
One more comment: Use `server.getReadRequests()` instead in line 1114 (this
line) and line 1090.
--
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]