mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.2 into bb-10.2-ext
This commit is contained in:
@ -19755,7 +19755,6 @@ bool test_if_use_dynamic_range_scan(JOIN_TAB *join_tab)
|
||||
|
||||
int join_init_read_record(JOIN_TAB *tab)
|
||||
{
|
||||
int error;
|
||||
/*
|
||||
Note: the query plan tree for the below operations is constructed in
|
||||
save_agg_explain_data.
|
||||
@ -19765,12 +19764,18 @@ int join_init_read_record(JOIN_TAB *tab)
|
||||
if (tab->filesort && tab->sort_table()) // Sort table.
|
||||
return 1;
|
||||
|
||||
if (tab->select && tab->select->quick && (error= tab->select->quick->reset()))
|
||||
DBUG_EXECUTE_IF("kill_join_init_read_record",
|
||||
tab->join->thd->set_killed(KILL_QUERY););
|
||||
if (tab->select && tab->select->quick && tab->select->quick->reset())
|
||||
{
|
||||
/* Ensures error status is propageted back to client */
|
||||
report_error(tab->table, error);
|
||||
/* Ensures error status is propagated back to client */
|
||||
report_error(tab->table,
|
||||
tab->join->thd->killed ? HA_ERR_QUERY_INTERRUPTED : HA_ERR_OUT_OF_MEM);
|
||||
return 1;
|
||||
}
|
||||
/* make sure we won't get ER_QUERY_INTERRUPTED from any code below */
|
||||
DBUG_EXECUTE_IF("kill_join_init_read_record",
|
||||
tab->join->thd->reset_killed(););
|
||||
if (!tab->preread_init_done && tab->preread_init())
|
||||
return 1;
|
||||
if (init_read_record(&tab->read_record, tab->join->thd, tab->table,
|
||||
|
Reference in New Issue
Block a user