Message ID | 20240326172717.1454071-5-i.maximets@ovn.org |
---|---|
State | Accepted |
Commit | e987af503975d6d1600e59f7da1bb465eb66aca3 |
Headers | show |
Series | ovsdb: raft: Fixes for cluster joining state. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
ovsrobot/intel-ovs-compilation | success | test: success |
diff --git a/ovsdb/raft.c b/ovsdb/raft.c index 5d7e88732..0c171b754 100644 --- a/ovsdb/raft.c +++ b/ovsdb/raft.c @@ -2120,7 +2120,7 @@ raft_run(struct raft *raft) raft_start_election(raft, true, false); } } else { - raft_start_election(raft, true, false); + raft_start_election(raft, hmap_count(&raft->servers) > 1, false); } }