Skip to content

Commit

Permalink
fix not update chunk_index
Browse files Browse the repository at this point in the history
  • Loading branch information
133tosakarin committed Sep 30, 2024
1 parent 8a50099 commit 79dd219
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,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) {
nextChunkIndex.set(snapshotChunkRequest.getRequestIndex() + 1);
return toInstallSnapshotReplyProto(leaderId, getMemberId(),
currentTerm, snapshotChunkRequest.getRequestIndex(), InstallSnapshotResult.ALREADY_INSTALLED);
}
Expand Down

0 comments on commit 79dd219

Please sign in to comment.