summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-10-29 14:24:06 +0200
committerunknown <serg@serg.mylan>2004-10-29 14:24:06 +0200
commit13ff3fa4b92642779c260c9fcd56ea2e5c96391c (patch)
tree470f639c064715a7b27df2392021dbaa6ad329cb /myisam/mi_check.c
parent55833fb49bf8570ee11d4b85b143a9a3975733fa (diff)
downloadmariadb-git-13ff3fa4b92642779c260c9fcd56ea2e5c96391c.tar.gz
proper max_records estimation for sort-repair of fulltext indexes
mysql-test/t/ctype_utf8.test: bad merge fixed
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r--myisam/mi_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index 4da388af1c7..1df518a2712 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -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;