mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
don't forget to call ha_index_end before destroying the handler
This commit is contained in:
@ -56,6 +56,7 @@ Expression_cache_tmptable::Expression_cache_tmptable(THD *thd,
|
|||||||
|
|
||||||
void Expression_cache_tmptable::disable_cache()
|
void Expression_cache_tmptable::disable_cache()
|
||||||
{
|
{
|
||||||
|
if (cache_table->file->inited)
|
||||||
cache_table->file->ha_index_end();
|
cache_table->file->ha_index_end();
|
||||||
free_tmp_table(table_thd, cache_table);
|
free_tmp_table(table_thd, cache_table);
|
||||||
cache_table= NULL;
|
cache_table= NULL;
|
||||||
|
Reference in New Issue
Block a user