mariadb/storage/innobase
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
..
btr MDEV-10813: Update buf_page_t::buf_fix_count outside mutex 2019-02-22 22:56:22 +02:00
buf Silence GCC 8 -Wno-class-memaccess 2019-03-12 19:46:28 +02:00
data Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
dict MDEV-18836 ASAN: heap-use-after-free after TRUNCATE 2019-03-13 13:31:45 +02:00
eval MDEV-12271 Port MySQL 8.0 Bug#23150562 REMOVE UNIV_MUST_NOT_INLINE AND UNIV_NONINL 2017-03-17 12:42:07 +02:00
fil MDEV-18194 Incremental prepare tries to access page which is out of tablespace bounds 2019-02-01 09:15:53 +02:00
fsp MDEV-10813: Update buf_page_t::buf_fix_count outside mutex 2019-02-22 22:56:22 +02:00
fts Merge 10.1 into 10.2 2019-03-06 15:15:59 +02:00
fut MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC 2017-03-17 12:48:50 +02:00
gis Update InnoDB urls 2018-12-19 00:07:33 +04:00
ha Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
handler MDEV-18836 ASAN: heap-use-after-free after TRUNCATE 2019-03-13 13:31:45 +02:00
ibuf Merge 10.1 into 10.2 2018-12-17 20:15:38 +02:00
include MDEV-18836 ASAN: heap-use-after-free after TRUNCATE 2019-03-13 13:31:45 +02:00
lock Remove some unnecessary InnoDB #include 2018-11-29 12:53:44 +02:00
log MDEV-18902 Uninitialized variable in recv_parse_log_recs() 2019-03-12 14:03:10 +02:00
mach Fix Bug#24707869 GCC 5 AND 6 MISCOMPILE MACH_PARSE_COMPRESSED 2017-04-26 23:03:29 +03:00
mem Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
mtr Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
mysql-test/storage_engine Merge branch '10.0' into 10.1 2017-08-08 10:18:43 +02:00
os Remove unnecessary type casts 2019-01-23 14:42:21 +02:00
page MDEV-17958 Make bug-endian innodb_checksum_algorithm=crc32 optional 2018-12-13 17:57:18 +02:00
pars Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
que Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
read Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
rem Remove many redundant #include from InnoDB 2018-11-19 11:42:14 +02:00
row MDEV-18836 ASAN: heap-use-after-free after TRUNCATE 2019-03-13 13:31:45 +02:00
srv Merge 10.1 into 10.2 2019-03-06 15:15:59 +02:00
sync Remove some unnecessary InnoDB #include 2018-11-29 12:53:44 +02:00
trx MDEV-18878: Fix GCC -flifetime-dse 2019-03-12 13:56:58 +02:00
ut Merge remote-tracking branch 'origin/10.1' into 10.2 2019-02-28 13:08:11 +02:00
bzip2.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
CMakeLists.txt Merge tag 'mariadb-10.0.35' into 10.0-galera 2018-05-07 17:20:39 +03:00
compile-innodb move to storage/innobase 2015-05-04 19:17:21 +02:00
COPYING.Google move to storage/innobase 2015-05-04 19:17:21 +02:00
COPYING.Percona move to storage/innobase 2015-05-04 19:17:21 +02:00
innodb.cmake MDEV-17958 Make bug-endian innodb_checksum_algorithm=crc32 optional 2018-12-13 17:57:18 +02:00
lz4.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzma.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzo.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
plugin_exports Solaris compilation failure: xtradb is linked in statically, ha_innodb.so needs 2014-05-01 14:05:52 +02:00
snappy.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00