summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2002-08-06 13:09:16 +0200
committerserg@sergbook.mysql.com <>2002-08-06 13:09:16 +0200
commit9621e36238fb0896b4bed391a5a027d9d8404083 (patch)
treea289043acce6d63f6f053021d859644e04e69eff /myisam/mi_check.c
parent97e34fe2ec067eff4ff509a40307430ba934eff1 (diff)
downloadmariadb-git-9621e36238fb0896b4bed391a5a027d9d8404083.tar.gz
fixed bug, that caused suboptimal memory usage during REPAIR when ft_max_word_len was decreased by user
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 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;