• Marko Mäkelä's avatar
    MDEV-33095 innodb_flush_method=O_DIRECT creates excessive errors on Solaris · a6290a5b
    Marko Mäkelä authored
    The directio(3C) function on Solaris is supported on NFS and UFS
    while the majority of users should be on ZFS, which is a copy-on-write
    file system that implements transparent compression and therefore
    cannot support unbuffered I/O.
    
    Let us remove the call to directio() and simply treat
    innodb_flush_method=O_DIRECT in the same way as the previous
    default value innodb_flush_method=fsync on Solaris. Also, let us
    remove some dead code around calls to os_file_set_nocache() on
    platforms where fcntl(2) is not usable with O_DIRECT.
    
    On IBM AIX, O_DIRECT is not documented for fcntl(2), only for open(2).
    a6290a5b
os0file.h 37.6 KB