Commit d44f68ae authored by Sergey Petrunya's avatar Sergey Petrunya

MWL#90: Switch update_depend_map() back to single loop (so that diff is smaller)

parent a919d8b4
...@@ -9268,13 +9268,8 @@ only_eq_ref_tables(JOIN *join,ORDER *order,table_map tables) ...@@ -9268,13 +9268,8 @@ only_eq_ref_tables(JOIN *join,ORDER *order,table_map tables)
static void update_depend_map(JOIN *join) static void update_depend_map(JOIN *join)
{ {
List_iterator<JOIN_TAB_RANGE> it(join->join_tab_ranges); for (JOIN_TAB *join_tab= first_linear_tab(join, WITH_CONST_TABLES); join_tab;
JOIN_TAB_RANGE *jt_range; join_tab= next_linear_tab(join, join_tab, WITH_BUSH_ROOTS))
while ((jt_range= it++))
{
for (JOIN_TAB *join_tab=jt_range->start; join_tab != jt_range->end;
join_tab++)
{ {
TABLE_REF *ref= &join_tab->ref; TABLE_REF *ref= &join_tab->ref;
table_map depend_map=0; table_map depend_map=0;
...@@ -9292,7 +9287,6 @@ static void update_depend_map(JOIN *join) ...@@ -9292,7 +9287,6 @@ static void update_depend_map(JOIN *join)
ref->depend_map|=(*tab)->ref.depend_map; ref->depend_map|=(*tab)->ref.depend_map;
} }
} }
}
} }
......
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