Commit facce925 authored by unknown's avatar unknown

Removed call to cond_push for empty cond

parent c6ac6aa5
...@@ -6106,8 +6106,6 @@ COND* ...@@ -6106,8 +6106,6 @@ COND*
ha_ndbcluster::cond_push(const COND *cond) ha_ndbcluster::cond_push(const COND *cond)
{ {
DBUG_ENTER("cond_push"); DBUG_ENTER("cond_push");
if (cond)
{
Ndb_cond_stack *ndb_cond = new Ndb_cond_stack(); Ndb_cond_stack *ndb_cond = new Ndb_cond_stack();
DBUG_EXECUTE("where",print_where((COND *)cond, m_tabname);); DBUG_EXECUTE("where",print_where((COND *)cond, m_tabname););
if (m_cond_stack) if (m_cond_stack)
...@@ -6124,7 +6122,6 @@ ha_ndbcluster::cond_push(const COND *cond) ...@@ -6124,7 +6122,6 @@ ha_ndbcluster::cond_push(const COND *cond)
{ {
cond_pop(); cond_pop();
} }
}
DBUG_RETURN(cond); DBUG_RETURN(cond);
} }
......
...@@ -5406,11 +5406,14 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) ...@@ -5406,11 +5406,14 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
COND *push_cond= COND *push_cond=
make_cond_for_table(cond,current_map,current_map); make_cond_for_table(cond,current_map,current_map);
tab->table->file->pushed_cond= NULL; tab->table->file->pushed_cond= NULL;
if (push_cond)
{
/* Push condition to handler */ /* Push condition to handler */
if (!tab->table->file->cond_push(push_cond)) if (!tab->table->file->cond_push(push_cond))
tab->table->file->pushed_cond= push_cond; tab->table->file->pushed_cond= push_cond;
} }
} }
}
else else
tab->select_cond= sel->cond= NULL; tab->select_cond= sel->cond= NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment