Fixed that internal temporary Aria tables are not flushed to disk

This bug was caused by
MDEV-17070 Table corruption or Assertion `table->file->stats.records > 0
This commit is contained in:
Monty 2024-11-19 19:05:52 +02:00
parent 0de9e40f4b
commit 69be363daa

View file

@ -2789,6 +2789,7 @@ int ha_maria::delete_table(const char *name)
void ha_maria::drop_table(const char *name)
{
DBUG_ASSERT(!file || file->s->temporary);
file->s->deleting= 1; // Do not flush data
(void) ha_close();
(void) maria_delete_table_files(name, 1, MY_WME);
}