Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raft,tracker: track commit index of each follower
This commit closes a gap in commit index tracking. Previously, the leader did not precisely know what commit index the follower is at, and always had to send an empty MsgApp to brind it up to date if it's not. With this commit, followers now send the commit index of their logs back to the leader, and the leader tracks each follower's commit index. This will allow the leader (see other commits) to send an empty MsgApp with a commit index update only if the tracked index is behind, which will reduce the number of unnecessary messages in the system. Signed-off-by: Pavel Kalinnikov <[email protected]>
- Loading branch information