• Eugene Kosov's avatar
    MDEV-21584 Linux aio returned OS error 22 · 52dad6fd
    Eugene Kosov authored
    Sometimes blockdev --getss returns 4096.
    In that case ROW_FORMAT=COMPRESSED tables might violate
    that 4096 bytes alignment.
    
    This patch disables O_DIRECT for COMPRESSED tables.
    
    OS_DATA_FILE_NO_O_DIRECT: new possible value for os_file_create() argument
    
    fil_node_open_file(): do not O_DIRECT
    ROW_FORMAT=COMPRESSED tables
    
    AIO::is_linux_native_aio_supported(): minimal alignment in a general case
    is 4096 and not 512.
    52dad6fd
os0file.h 50.9 KB