Rename message when contending

This commit is contained in:
Joshua Boniface 2019-07-09 14:03:48 -04:00
parent 4249d5d982
commit b551b54642
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ def update_primary(new_primary, stat, event=''):
# We're a coordinator and there is no primary
if new_primary == 'none':
if this_node.daemon_state == 'run' and this_node.router_state != 'primary':
logger.out('Contending for primary routing state', state='i')
logger.out('Contending for primary coordinator state', state='i')
zkhandler.writedata(zk_conn, {'/primary_node': myhostname})
elif new_primary == myhostname:
zkhandler.writedata(zk_conn, {'/nodes/{}/routerstate'.format(myhostname): 'primary'})