1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-4316 MariaDB server crash with signal 11

fulltext search was initialized for all MATCH ... AGAINST items
at the end of the JOIN::optimize(). But since 5.3 derived tables
are initialized lazily on first use, very late in the sub_select().

Skip Item_func_match::init_search initialization if the corresponding
table isn't open yet; repeat fulltext initialization for all
not-yet-initialized MATCH ... AGAINST items after creating derived tables.
This commit is contained in:
Sergei Golubchik
2013-04-06 15:14:46 +02:00
parent 385de8743a
commit 6770a9a836
5 changed files with 42 additions and 15 deletions

View File

@@ -10191,6 +10191,11 @@ bool JOIN_TAB::preread_init()
preread_init_done= TRUE;
if (select && select->quick)
select->quick->replace_handler(table->file);
/* init ftfuns for just initialized derived table */
if (table->fulltext_searched)
init_ftfuncs(join->thd, join->select_lex, test(join->order));
return FALSE;
}