mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#51866 - crash with repair by sort and fulltext keys
Repairing MyISAM table with fulltext indexes and low myisam_sort_buffer_size may crash the server. Estimation of number of index entries was done incorrectly, causing further assertion failure or server crash. Docs note: min value for myisam_sort_buffer_size has been changed from 4 to 4096.
This commit is contained in:
@ -6858,7 +6858,7 @@ The minimum value for this variable is 4096.",
|
||||
"The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE.",
|
||||
(uchar**) &global_system_variables.myisam_sort_buff_size,
|
||||
(uchar**) &max_system_variables.myisam_sort_buff_size, 0,
|
||||
GET_ULONG, REQUIRED_ARG, 8192*1024, 4, ~0L, 0, 1, 0},
|
||||
GET_ULONG, REQUIRED_ARG, 8192 * 1024, 4096, ~0L, 0, 1, 0},
|
||||
{"myisam_use_mmap", OPT_MYISAM_USE_MMAP,
|
||||
"Use memory mapping for reading and writing MyISAM tables.",
|
||||
(uchar**) &opt_myisam_use_mmap,
|
||||
|
Reference in New Issue
Block a user