Commit 9621e362 authored by serg@sergbook.mysql.com's avatar serg@sergbook.mysql.com
Browse files

fixed bug, that caused suboptimal memory usage during REPAIR when...

fixed bug, that caused suboptimal memory usage during REPAIR when ft_max_word_len was decreased by user
parent 97e34fe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1943,7 +1943,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
        (ha_rows) (sort_info.filelength/ft_max_word_len_for_sort+1);

      sort_param.key_read=sort_ft_key_read;
      sort_param.key_length+=ft_max_word_len_for_sort-ft_max_word_len;
      sort_param.key_length+=ft_max_word_len_for_sort-HA_FT_MAXLEN;
    }
    else
      sort_param.key_read=sort_key_read;