1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-16110 ALTER with ALGORITHM=INPLACE breaks temporary table with virtual columns

Part two, temporary tables.

Make temporary tables respect TABLE::m_needs_reopen.

See also 77cd754229
This commit is contained in:
Sergei Golubchik
2018-12-16 18:32:05 +01:00
parent d13302ff60
commit 2027841d5b
3 changed files with 37 additions and 0 deletions

View File

@ -1042,6 +1042,13 @@ TABLE *THD::find_temporary_table(const char *key, uint key_length,
case TMP_TABLE_ANY: found= true; break;
}
}
if (table && unlikely(table->m_needs_reopen))
{
share->all_tmp_tables.remove(table);
free_temporary_table(table);
it.rewind();
continue;
}
result= table;
break;
}