MCPcopy Create free account
hub / github.com/MariaDB/server / next_explain_order_tab

Function next_explain_order_tab

sql/sql_select.cc:13056–13072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13054
13055
13056JOIN_TAB *next_explain_order_tab(JOIN* join, JOIN_TAB* tab)
13057{
13058 /* If we're inside SJM nest and have reached its end, get out */
13059 if (tab->last_leaf_in_bush)
13060 return tab->bush_root_tab;
13061
13062 /* Move to next tab in the array we're traversing */
13063 tab++;
13064
13065 if (tab == join->join_tab + join->top_join_tab_count)
13066 return NULL; /* Outside SJM nest and reached EOF */
13067
13068 if (tab->bush_children)
13069 return tab->bush_children->start;
13070
13071 return tab;
13072}
13073
13074
13075

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected