1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

WL #528: Faster free_tmp_table

This commit is contained in:
unknown
2005-11-06 08:29:03 +01:00
parent efe3703aac
commit 89288fac18
7 changed files with 43 additions and 14 deletions

View File

@ -8848,16 +8848,8 @@ free_tmp_table(THD *thd, TABLE *entry)
if (entry->file)
{
if (entry->db_stat)
{
(void) entry->file->close();
}
/*
We can't call ha_delete_table here as the table may created in mixed case
here and we have to ensure that delete_table gets the table name in
the original case.
*/
if (!(test_flags & TEST_KEEP_TMP_TABLES) ||
entry->s->db_type == DB_TYPE_HEAP)
entry->file->drop_table(entry->s->table_name);
else
entry->file->delete_table(entry->s->table_name);
delete entry->file;
}