mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Removed unnecessary current_thd
This commit is contained in:
parent
9f4c18f044
commit
66eaf5f243
1 changed files with 2 additions and 2 deletions
|
@ -5305,7 +5305,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
|
|||
if (!(tmp= add_found_match_trig_cond(first_inner_tab, tmp, 0)))
|
||||
DBUG_RETURN(1);
|
||||
tab->select_cond=sel->cond=tmp;
|
||||
if (current_thd->variables.engine_condition_pushdown)
|
||||
if (join->thd->variables.engine_condition_pushdown)
|
||||
{
|
||||
tab->table->file->pushed_cond= NULL;
|
||||
/* Push condition to handler */
|
||||
|
@ -5433,7 +5433,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
|
|||
join->thd->memdup((gptr) sel, sizeof(SQL_SELECT));
|
||||
tab->cache.select->cond=tmp;
|
||||
tab->cache.select->read_tables=join->const_table_map;
|
||||
if (current_thd->variables.engine_condition_pushdown &&
|
||||
if (join->thd->variables.engine_condition_pushdown &&
|
||||
(!tab->table->file->pushed_cond))
|
||||
{
|
||||
/* Push condition to handler */
|
||||
|
|
Loading…
Reference in a new issue