Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raft: Send all missing logs in one single append_request.
When a follower needs to "catch up", leader can send N entries in a single append_request instead of only one entry by each message. The function raft_send_append_request() already supports this, so this patch just calculate the correct "n" and use it. Signed-off-by: Han Zhou <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information