• antirez's avatar
    Prevent a spurious +sdown event on switch. · f8a19e32
    antirez authored
    When we reset the master we should start with clean timestamps for ping
    replies otherwise we'll detect a spurious +sdown event, because on
    +master-switch event the previous master instance was probably in +sdown
    condition. Since we updated the address we should count time from
    scratch again.
    
    Also this commit makes sure to explicitly reset the count of pending
    commands, now we can do this because of the new way the hiredis link
    is closed.
    f8a19e32
sentinel.c 93.5 KB