• WuYunlong's avatar
    Add fsync to readSyncBulkPayload(). (#7839) · bb7e00b6
    WuYunlong authored
    We should sync temp DB file before renaming as rdb_fsync_range does not use
    flag `SYNC_FILE_RANGE_WAIT_AFTER`.
    
    Refer to `Linux Programmer's Manual`:
    SYNC_FILE_RANGE_WAIT_AFTER
        Wait upon write-out of all pages in the range after performing any write.
    
    (cherry picked from commit 0d62caab)
    bb7e00b6
replication.c 135 KB