• antirez's avatar
    Sentinel: remove useless sentinelFlushConfig() call · bd99b26b
    antirez authored
    To rewrite the config in the loop that adds slaves back after a master
    reset, in order to handle switching to another master, is useless: it
    just adds latency since there is an fsync call in the inner loop,
    without providing any additional guarantee, but the contrary, since if
    after the first loop iteration the server crashes we end with just a
    single slave entry losing all the other informations.
    
    It is wiser to rewrite the config at the end when the full new
    state is configured.
    bd99b26b
sentinel.c 148 KB