• Tian's avatar
    Make cluster config file saving atomic and fsync acl (#10924) · cc284813
    Tian authored
    
    
    As an outstanding part mentioned in #10737, we could just make the cluster config file and
    ACL file saving done with a more safe and atomic pattern (write to temp file, fsync, rename, fsync dir).
    
    The cluster config file uses an in-place overwrite and truncation (which was also used by the
    main config file before #7824).
    The ACL file is using the temp file and rename approach, but was missing an fsync.
    Co-authored-by: default avatar朱天 <zhutian03@meituan.com>
    cc284813
cluster.c 276 KB