]> git.proxmox.com Git - ovs.git/commit
raft: Avoid sending unnecessary heartbeat when becoming leader.
authorHan Zhou <hzhou@ovn.org>
Sat, 29 Feb 2020 02:07:08 +0000 (18:07 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 6 Mar 2020 22:01:08 +0000 (14:01 -0800)
commitb5e8810443a552b0adc5ff05b483c30de63f5ab9
tree47d7372e520d8de2ff153301e377bcdb93b34b0a
parentbb66a0a6eb7971556504a294f5cf796d1d72db25
raft: Avoid sending unnecessary heartbeat when becoming leader.

When a node becomes leader, it sends out heartbeat to all followers
and then sends out another append-request for a no-op command
execution to all followers again immediately. This causes 2
continously append-requests sent out to each followers, and the first
heartbeat append-request is unnecessary. This patch removes the
heartbeat.

Signed-off-by: Han Zhou <hzhou@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovsdb/raft.c