• antirez's avatar
    Cluster: improve crash-recovery safety after failover auth vote. · 93bad8ae
    antirez authored
    Add AE_BARRIER to the writable event loop so that slaves requesting
    votes can't be served before we re-enter the event loop in the next
    iteration, so clusterBeforeSleep() will fsync to disk in time.
    Also add the call to explicitly fsync, given that we modified the last
    vote epoch variable.
    93bad8ae
cluster.c 213 KB