1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MWL#90: Address review feedback part #2

This commit is contained in:
Sergey Petrunya
2011-03-21 23:06:16 +03:00
parent 792c67ff61
commit d56e74eb9b
3 changed files with 24 additions and 15 deletions

View File

@ -3235,6 +3235,13 @@ int JOIN_TAB_SCAN::next()
}
/*
Walk back in join order from join_tab until we encounter a join tab with
tab->cache!=NULL, and save/restore tab->table->status along the way.
@param save TRUE save
FALSE restore
*/
void save_or_restore_used_tabs(JOIN_TAB *join_tab, bool save)
{
JOIN_TAB *first= join_tab->bush_root_tab?
@ -3251,6 +3258,7 @@ void save_or_restore_used_tabs(JOIN_TAB *join_tab, bool save)
{
if (save)
child->table->status= child->status;
else
{
tab->status= tab->table->status;
tab->table->status= 0;