1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed ASAN heap-use-after-free handler::ha_index_or_rnd_end

MDEV-16123 ASAN heap-use-after-free handler::ha_index_or_rnd_end
MDEV-13828 Segmentation fault on RENAME TABLE

Problem was that destructor called methods for closed table.
Fixed by removing code in destructor.
This commit is contained in:
Monty
2018-05-23 11:26:49 +03:00
parent 908676dfd9
commit a816aa066e
3 changed files with 26 additions and 1 deletions

View File

@ -1376,7 +1376,8 @@ public:
~Stat_table_write_iter()
{
cleanup();
/* Ensure that cleanup has been run */
DBUG_ASSERT(rowid_buf == 0);
}
};