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