mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
merge
BitKeeper/etc/logging_ok: auto-union Docs/manual.texi: Auto merged innobase/srv/srv0srv.c: Auto merged myisam/mi_check.c: Auto merged myisam/mi_open.c: Auto merged myisam/mi_packrec.c: Auto merged myisam/myisamdef.h: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/t/fulltext.test: Auto merged sql/stacktrace.c: Auto merged sql/mysql_priv.h: Auto merged sql/sql_base.cc: Auto merged sql/sql_update.cc: Auto merged
This commit is contained in:
@@ -2172,17 +2172,18 @@ bool remove_table_from_cache(THD *thd, const char *db, const char *table_name,
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
int setup_ftfuncs(THD *thd,TABLE_LIST *tables, List<Item_func_match> &ftfuncs)
|
||||
int setup_ftfuncs(THD *thd)
|
||||
{
|
||||
List_iterator<Item_func_match> li(ftfuncs), li2(ftfuncs);
|
||||
List_iterator<Item_func_match> li(thd->lex.ftfunc_list),
|
||||
lj(thd->lex.ftfunc_list);
|
||||
Item_func_match *ftf, *ftf2;
|
||||
|
||||
while ((ftf=li++))
|
||||
{
|
||||
if (ftf->fix_index())
|
||||
return 1;
|
||||
li2.rewind();
|
||||
while ((ftf2=li2++) != ftf)
|
||||
lj.rewind();
|
||||
while ((ftf2=lj++) != ftf)
|
||||
{
|
||||
if (ftf->eq(ftf2) && !ftf2->master)
|
||||
ftf2->master=ftf;
|
||||
@@ -2191,3 +2192,19 @@ int setup_ftfuncs(THD *thd,TABLE_LIST *tables, List<Item_func_match> &ftfuncs)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int init_ftfuncs(THD *thd, bool no_order)
|
||||
{
|
||||
List_iterator<Item_func_match> li(thd->lex.ftfunc_list);
|
||||
Item_func_match *ifm;
|
||||
DBUG_PRINT("info",("Performing FULLTEXT search"));
|
||||
thd->proc_info="FULLTEXT initialization";
|
||||
|
||||
while ((ifm=li++))
|
||||
{
|
||||
ifm->init_search(no_order);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user