• antirez's avatar
    Use fflush() before fsync() in rio.c. · 248e9165
    antirez authored
    Incremental flushing in rio.c is only used to avoid huge kernel buffers
    synched to slow disks creating big latency spikes, so this fix has no
    durability implications, however it is certainly more correct to make
    sure that the FILE buffers are flushed to the kernel before calling
    fsync on the file descriptor.
    
    Thanks to Li Shao Kai for reporting this issue in the Redis mailing
    list.
    248e9165
rio.c 6.94 KB