• antirez's avatar
    Cluster: masters don't vote for a slave with stale config. · ae2763f5
    antirez authored
    When a slave requests our vote, the configEpoch he claims for its master
    and the set of served slots must be greater or equal to the configEpoch
    of the nodes serving these slots in the current configuraiton of the
    master granting its vote.
    
    In other terms, masters don't vote for slaves having a stale
    configuration for the slots they want to serve.
    ae2763f5
cluster.c 119 KB