• Vladislav Vaintroub's avatar
    MDEV-21260 Innodb/Wjndows do not report error when trying open volumes on UNC paths · 3304004a
    Vladislav Vaintroub authored
    fil_node_t::find_metadata() tries to find out whether file
    is on an SSD, and the disk sector size.
    On Windows, it opens the corresponding volume for finding this data.
    
    This does not go well, if datadir is on network path/UNC. The volume name
    is invalid, CreateFile() function fails, and a cryptic (from the end user
    perspective) error is reported. Like this
    
    [ERROR] InnoDB: File \\.\\\workpc\work: 'CreateFile()' returned OS error 203.
    
    The fix is not to report error if open volume failed, and the path was not
    on fixed disk, i.e not on HDD or SSD. This is not a fatal error, there is
    a fallback anyway.
    3304004a
os0file.cc 184 KB