Commit 7f838fe6 authored by Sergey Petrunya's avatar Sergey Petrunya

MWL#90: Address review feedback: fix a problem introduced a few csets earlier:...

MWL#90: Address review feedback: fix a problem introduced a few csets earlier: Do perform tab->cleanup()
for const tables in JOIN::cleanup().
parent 9111d6ff
......@@ -9017,7 +9017,7 @@ void JOIN::cleanup(bool full)
if (full)
{
for (tab= first_linear_tab(this, TRUE); tab;
for (tab= first_linear_tab(this, FALSE); tab;
tab= next_linear_tab(this, tab, TRUE))
{
tab->cleanup();
......@@ -9026,7 +9026,7 @@ void JOIN::cleanup(bool full)
}
else
{
for (tab= first_linear_tab(this, TRUE); tab;
for (tab= first_linear_tab(this, FALSE); tab;
tab= next_linear_tab(this, tab, TRUE))
{
if (tab->table)
......
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