• Sergey Vojtovich's avatar
    BUG#47073 - valgrind errs, corruption,failed repair of partition, · 858713ed
    Sergey Vojtovich authored
                low myisam_sort_buffer_size
    
    Repair by sort (default) or parallel repair of a MyISAM table
    (doesn't matter partitioned or not) as well as bulk inserts
    and enable indexes some times didn't failover to repair with
    key cache.
    
    The problem was that after unsuccessful attempt, data file was
    closed. Whereas repair with key cache requires open data file.
    Fixed by reopening data file.
    
    Also fixed a valgrind warning, which may appear during repair
    by sort or parallel repair with certain myisam_sort_buffer_size
    number of rows and length of an index entry (very dependent).
    858713ed
sort.c 31.7 KB