• Marko Mäkelä's avatar
    MDEV-26192: Sparse files are being created on thinly provisioned storage · 61fcbed9
    Marko Mäkelä authored
    In MDEV-26029 the intention was that page_compressed tables would
    be written as regular (non-sparse) files if the file is stored on
    a thinly provisioned block device.
    
    We were incorrectly requesting os_file_set_size() to create
    sparse files even on thinly provisioned storage.
    
    fil_space_extend_must_retry(): Extend the file in the correct fashion.
    
    fil_ibd_create(), recv_sys_t::recover_deferred(): Only create a
    sparse file for page_compressed tables if thin provisioning is not
    detected.
    61fcbed9
log0recv.cc 126 KB