]> git.proxmox.com Git - mirror_ovs.git/commit
raft: Send all missing logs in one single append_request.
authorHan Zhou <hzhou@ovn.org>
Sat, 29 Feb 2020 02:07:09 +0000 (18:07 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 6 Mar 2020 22:01:18 +0000 (14:01 -0800)
commit99c2dc8d04b3b697edfa02b06e127edad6ad5b28
tree198bd1903738286de98fdfd86a81637259d6246a
parentb5e8810443a552b0adc5ff05b483c30de63f5ab9
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 <hzhou@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovsdb/raft.c