summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mysql.com>2002-08-06 13:09:16 +0200
committerunknown <serg@sergbook.mysql.com>2002-08-06 13:09:16 +0200
commit5f0cd0fe8c7a40e122f648a189d31fd93b6fe662 (patch)
treea289043acce6d63f6f053021d859644e04e69eff /myisam
parente8c681a76ef63f06b3f7261355d8b0cc926483d8 (diff)
downloadmariadb-git-5f0cd0fe8c7a40e122f648a189d31fd93b6fe662.tar.gz
fixed bug, that caused suboptimal memory usage during REPAIR when ft_max_word_len was decreased by user
Diffstat (limited to 'myisam')
-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 ee1c2d64ea1..d21bcfd1f4d 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -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;