Commit 66eaf5f2 authored by unknown's avatar unknown
Browse files

Removed unnecessary current_thd

parent 9f4c18f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */