• Wang Yuan's avatar
    Fix wrong check for aof fsync and handle aof fsync errno (#8751) · a0e19e3c
    Wang Yuan authored
    The bio aof fsync fd may be closed by main thread (AOFRW done handler)
    and even possibly reused for another socket, pipe, or file.
    This can can an EBADF or EINVAL fsync error, which will lead to -MISCONF errors failing all writes.
    We just ignore these errno because aof fsync did not really fail.
    
    We handle errno when fsyncing aof in bio, so we could know the real reason
    when users get -MISCONF Errors writing to the AOF file error
    
    Issue created with #8419
    a0e19e3c
bio.c 11.6 KB