]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovsdb-cluster.at
raft: Fix raft_is_connected() when there is no leader yet.
authorHan Zhou <hzhou@ovn.org>
Sat, 29 Feb 2020 02:07:06 +0000 (18:07 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 6 Mar 2020 21:47:15 +0000 (13:47 -0800)
commit2833885f7ab565ce07f40de2ab8d415dc0390329
tree82184e726a8e14de3c6dc4f7d002f65e476e1cf4
parentbda1f6b60588a45b71fa812f260921793df39aef
raft: Fix raft_is_connected() when there is no leader yet.

If there is never a leader known by the current server, it's status
should be "disconnected" to the cluster. Without this patch, when
a server in cluster is restarted, before it successfully connecting
back to the cluster it will appear as connected, which is wrong.

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