• antirez's avatar
    Cluster: SET-CONFIG-EPOCH should update currentEpoch. · a2c2ef7d
    antirez authored
    SET-CONFIG-EPOCH, used by redis-trib at cluster creation time, failed to
    update the currentEpoch, making it possible after a failover for a
    server to set its configEpoch to a value smaller than the current one
    (since configEpochs are obtained using currentEpoch).
    
    The bug totally break the Redis Cluster algorithms and protocols
    allowing for permanent split brain conditions about the slots
    configuration as shown in issue #1799.
    a2c2ef7d
cluster.c 171 KB