• antirez's avatar
    Cluster: improve crash-recovery safety after failover auth vote. · 9176f4b9
    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.
    9176f4b9
cluster.c 204 KB