summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2009-01-26 10:35:15 +0400
committerRamil Kalimullin <ramil@mysql.com>2009-01-26 10:35:15 +0400
commit01511453102aa18fb8933927d80eccdeef501c68 (patch)
tree5abc1ae29b07ce3e199f41e4dfcab29a2f6a4d70 /include
parent75342ddd345457753da016a5387584e742a1eb74 (diff)
downloadmariadb-git-01511453102aa18fb8933927d80eccdeef501c68.tar.gz
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).
Diffstat (limited to 'include')
-rw-r--r--include/myisam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/myisam.h b/include/myisam.h
index 16175547367..d7bfdf7191e 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -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 */