• unknown's avatar
    BUG#22937 - Valgrind failure in 'merge' test (ha_myisammrg.cc:329) · 47a70282
    unknown authored
    This is addition to fix for bug21617. Valgrind reports an error when
    opening merge table that has underlying tables with less indexes than
    in a merge table itself.
    
    Copy at most min(file->keys, table->key_parts) elements from rec_per_key array.
    This fixes problems when merge table and subtables have different number of keys.
    
    
    sql/ha_myisammrg.cc:
      Copy at most min(file->keys, table->key_parts) elements from rec_per_key array.
      This fixes problems when merge table and subtables have different number of keys.
    47a70282
ha_myisammrg.cc 14.4 KB