mariadb/storage/innobase/dict
Marko Mäkelä 56304875f7 MDEV-18836 ASAN: heap-use-after-free after TRUNCATE
row_drop_tables_for_mysql_in_background(): Copy the table name
before closing the table handle, to avoid heap-use-after-free if
another thread succeeds in dropping the table before
row_drop_table_for_mysql_in_background() completes the table name lookup.

dict_mem_create_temporary_tablename(): With innodb_safe_truncate=ON
(the default), generate a simple, unique, collision-free table name
using only the id, no pseudorandom component. This is safe, because
on startup, we will drop any #sql tables that might exist in InnoDB.
This is a backport from 10.3. It should have been backported already
as part of backporting MDEV-14717,MDEV-14585 which were prerequisites
for the MDEV-13564 backup-friendly TRUNCATE TABLE.
This seems to reduce the chance of table creation failures in
ha_innobase::truncate().

ha_innobase::truncate(): Do not invoke close(), but instead
mimic it, so that we can restore to the original table handle
in case opening the truncated copy of the table failed.
2019-03-13 13:31:45 +02:00
..
dict0boot.cc Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
dict0crea.cc MDEV-17859: Clean up the FOREIGN KEY handling 2018-11-29 09:16:48 +02:00
dict0defrag_bg.cc Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
dict0dict.cc Merge 10.1 into 10.2 2019-03-07 17:52:27 +02:00
dict0load.cc Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
dict0mem.cc MDEV-18836 ASAN: heap-use-after-free after TRUNCATE 2019-03-13 13:31:45 +02:00
dict0stats.cc Remove some unnecessary InnoDB #include 2018-11-29 12:53:44 +02:00
dict0stats_bg.cc MDEV-18577: Indexes problem on import dump SQL 2019-03-13 10:18:12 +02:00