1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

proper max_records estimation for sort-repair of fulltext indexes

mysql-test/t/ctype_utf8.test:
  bad merge fixed
This commit is contained in:
unknown
2004-10-29 14:24:06 +02:00
parent 55833fb49b
commit 13ff3fa4b9
4 changed files with 13 additions and 2 deletions

View File

@ -2037,7 +2037,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
uint ft_max_word_len_for_sort=FT_MAX_WORD_LEN_FOR_SORT*
sort_param.keyinfo->seg->charset->mbmaxlen;
sort_info.max_records=
(ha_rows) (sort_info.filelength/ft_max_word_len_for_sort+1);
(ha_rows) (sort_info.filelength/ft_min_word_len+1);
sort_param.key_read=sort_ft_key_read;
sort_param.key_write=sort_ft_key_write;