• antirez's avatar
    Fix Sentinel pending commands counting. · f7351f4c
    antirez authored
    This bug most experienced effect was an inability of Redis to
    reconfigure back old masters to slaves after they are reachable again
    after a failover. This was due to failing to reset the count of the
    pending commands properly, so the master appeared fovever down.
    
    Was introduced in Redis 3.2 new Sentinel connection sharing feature
    which is a lot more complex than the 3.0 code, but more scalable.
    
    Many thanks to people reporting the issue, and especially to
    @sskorgal for investigating the issue in depth.
    
    Hopefully closes #3285.
    f7351f4c
sentinel.c 166 KB