mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Fix for bug #37756: enabling fulltext indexes with
myisam_repair_threads > 1 causes crash Problem: parallel repair (myisam_repair_threads > 1) of a myisam table with two or more fulltext keys that use the same parser may lead to a server crash. ALTER TABLE ENABLE KEYS is affected as well. Fix: properly initialize fulltext structures for parallel repair. Note: 1. there's no deterministic test case. 2. now we call parser->init() for each fulltext key (not for each fulltext parser used).
This commit is contained in:
@@ -185,7 +185,7 @@ typedef struct st_mi_keydef /* Key definition with open & info */
|
||||
uint16 maxlength; /* max length of (packed) key (auto) */
|
||||
uint16 block_size_index; /* block_size (auto) */
|
||||
uint32 version; /* For concurrent read/write */
|
||||
uint32 ftparser_nr; /* distinct ftparser number */
|
||||
uint32 ftkey_nr; /* full-text index number */
|
||||
|
||||
HA_KEYSEG *seg,*end;
|
||||
struct st_mysql_ftparser *parser; /* Fulltext [pre]parser */
|
||||
|
Reference in New Issue
Block a user