Skip to content

Commit

Permalink
fix: raft local commit not advance
Browse files Browse the repository at this point in the history
Signed-off-by: James Yin <[email protected]>
  • Loading branch information
ifplusor committed Dec 30, 2022
1 parent 7e5318d commit c61e5e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,8 @@ func stepLeader(r *raft, m pb.Message) error {
if r.maybeCommit() {
// TODO(james.yin): Send latest commit to follower nodes?
// r.bcastAppend()
} else {
r.raftLog.localCommitTo(r.raftLog.committed)
}
}
return nil
Expand Down

0 comments on commit c61e5e9

Please sign in to comment.