1
0
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:
Sergei Golubchik
2011-10-19 22:52:43 +02:00
parent d649d0cc8c
commit a078f13121

View File

@ -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;
}