mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge 10.0-base -> mwl253
This commit is contained in:
@@ -3877,6 +3877,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
join->join_tab=stat;
|
||||
join->top_join_tab_count= table_count;
|
||||
join->map2table=stat_ref;
|
||||
join->table= table_vector;
|
||||
join->const_tables=const_count;
|
||||
@@ -3924,6 +3925,8 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
if (join->choose_subquery_plan(all_table_map & ~join->const_table_map))
|
||||
goto error;
|
||||
|
||||
DEBUG_SYNC(join->thd, "inside_make_join_statistics");
|
||||
|
||||
/* Generate an execution plan from the found optimal join order. */
|
||||
DBUG_RETURN(join->thd->check_killed() || get_best_combination(join));
|
||||
|
||||
@@ -10854,6 +10857,10 @@ bool JOIN_TAB::preread_init()
|
||||
dbug_serve_apcs(join->thd, 1);
|
||||
);
|
||||
|
||||
/* init ftfuns for just initialized derived table */
|
||||
if (table->fulltext_searched)
|
||||
init_ftfuncs(join->thd, join->select_lex, test(join->order));
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user