• antirez's avatar
    Sentinel: fix computation of total number of votes. · 9fe4429a
    antirez authored
    The code to check the number of voters was never updated to follow the new
    Sentinel specification, so the number of voters was computed using only
    the set of Sentinels that provided a vote.
    
    This means that there is a changing majority on partitions, even if
    usually the issue is not triggered because of the configured quorum
    check (what was broken was the other implicit check that requires anyway
    half of the known sentinels to agree in order to start a failover).
    9fe4429a
sentinel.c 148 KB