mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-28 20:07:48 +00:00
Fix quorum when there is no collective yet
This commit is contained in:
parent
baa365fcac
commit
4d9b11bc55
@ -638,6 +638,10 @@ def has_quorum():
|
||||
for follower in cfgstreams:
|
||||
if cfgstreams[follower].get('role', None) != 'nonvoting':
|
||||
voters += 1
|
||||
iam = get_collective_member(get_myname())
|
||||
myrole = None
|
||||
if iam:
|
||||
myrole = iam.get('role', None)
|
||||
myrole = get_collective_member(get_myname()).get('role', None)
|
||||
if myrole != 'nonvoting':
|
||||
voters += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user