• antirez's avatar
    Cluster: fetch my IP even if msg is not MEET for the first time. · cf76af6b
    antirez authored
    In order to avoid that misconfigured cluster nodes at some time may
    force an IP update on other nodes, it is required that nodes update
    their own address only on MEET messages. However it does not make sense
    to do this the first time a node is contacted and yet does not have an
    IP, we just risk that myself->ip remains not assigned if there are
    messages lost or cluster creation procedures that don't make sure
    everybody is targeted by at least one incoming MEET message.
    
    Also fix the logging of the IP switch avoiding the :-1 tail.
    cf76af6b
cluster.c 182 KB