• M
    Fix data loss when save AOF/RDB with no free space · 88c6c669
    Matt Stancliff 提交于
    Previously, the (!fp) would only catch lack of free space
    under OS X.  Linux waits to discover it can't write until
    it actually writes contents to disk.
    
    (fwrite() returns success even if the underlying file
    has no free space to write into.  All the errors
    only show up at flush/sync/close time.)
    
    Fixes antirez/redis#1604
    88c6c669
rdb.c 43.3 KB