Skip to content

Commit

Permalink
RATIS-2084. Follower reply ALREADY_INSTALLED when install old snapsho…
Browse files Browse the repository at this point in the history
…ts from leader (#1091)
  • Loading branch information
SzyWilliam committed Jun 12, 2024
1 parent f3b9d12 commit 2a0d569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private InstallSnapshotReplyProto checkAndInstallSnapshot(InstallSnapshotRequest
// considering a follower peer requiring a snapshot installation does not
// have a lot of requests
if (state.getLog().getLastCommittedIndex() >= lastIncludedIndex) {
return toInstallSnapshotReplyProto(leaderId, getMemberId(),
return ServerProtoUtils.toInstallSnapshotReplyProto(leaderId, getMemberId(),
currentTerm, snapshotChunkRequest.getRequestIndex(), InstallSnapshotResult.ALREADY_INSTALLED);
}

Expand Down

0 comments on commit 2a0d569

Please sign in to comment.