• antirez's avatar
    Sentinel: fix address of master in Hello messages. · 69d826a3
    antirez authored
    Once we switched configuration during a failover, we should advertise
    the new address.
    
    This was a serious race condition as the Sentinel performing the
    failover for a moment advertised the old address with the new
    configuration epoch: once trasmitted to the other Sentinels the broken
    configuration would remain there forever, until the next failover
    (because a greater configuration epoch is required to overwrite an older
    one).
    69d826a3
sentinel.c 121 KB