• antirez's avatar
    Cluster: clear todo_before_sleep flags when executing actions. · 41a72416
    antirez authored
    Thanks to this change, when there is some code like:
    
        clusterDoBeforeSleep(CLUSTER_TODO_UPDATE_STATE|...);
        ... and later before returning to the event loop ...
        clusterUpdateState();
    
    The clusterUpdateState() function will clar the flag and will not be
    repeated in the clusterBeforeSleep() function. This especially important
    for config save/fsync flags which are slow to execute and not a good
    idea to repeat without a good reason.
    
    This is implemented for all the CLUSTER_TODO flags.
    41a72416
cluster.c 171 KB