• Uri Shachar's avatar
    Fix config rewrite file handling to make it really atomic (#7824) · 90555566
    Uri Shachar authored
    Make sure we handle short writes correctly, sync to disk after writing  and use
    rename to make sure the replacement is actually atomic.
    In any case of failure old configuration will remain in place.
    
    Also, add some additional logging to make it easier to diagnose rewrite problems.
    
    (cherry picked from commit c30bd02c)
    90555566
config.c 100 KB