2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-12 08:40:24 +00:00

Fix greenlet 'isAlive'

There is no 'isAlive' in a greenlet.
This commit is contained in:
Jarrod Johnson 2019-10-14 13:59:24 -04:00
parent 606a308046
commit fc626d36ba
2 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ def handle_connection(connection, cert, request, local=False):
connection.close()
return
if (currentleader == connection.getpeername()[0] and
follower and follower.isAlive()):
follower and not follower.dead:
# if we are happily following this leader already, don't stir
# the pot
tlvdata.send(connection, {'status': 0})

View File

@ -2338,7 +2338,7 @@ class ConfigManager(object):
return
with cls._syncstate:
if (cls._syncrunning and cls._cfgwriter is not None and
cls._cfgwriter.isAlive()):
not cls._cfgwriter.dead):
cls._writepending = True
return
if cls._syncrunning: # This suggests an unclean write attempt,