• Sergey Vojtovich's avatar
    BUG#11757032 - 49030: OPTIMIZE TABLE BREAKS MYISAM TABLE WHEN · 3e0491c7
    Sergey Vojtovich authored
                   USING MYISAM_USE_MMAP ON WINDOWS
    
    When OPTIMIZE/REPAIR TABLE is switching to new data file,
    old data file is removed while memory mapping is still
    active.
    
    With 5.1 implementation of nt_share_delete() it is not
    permitted to remove mmaped file.
    
    This fix disables memory mapping for mi_repair() operations.
    3e0491c7
mi_delete_all.c 2.54 KB