mariadb/mysql-test/suite
Monty 676987c4a1 MDEV-24532 Table corruption ER_NO_SUCH_TABLE_IN_ENGINE .. on table with foreign key
When doing a truncate on an Innodb under lock tables, InnoDB would rename
the old table to #sql-... and recreate a new 't1' table. The table lock
would still be on the #sql-table.

When doing ALTER TABLE, Innodb would do the changes on the #sql table
(which would disappear on close).
When the SQL layer, as part of inline alter table, would close the
original t1 table (#sql in InnoDB) and then reopen the t1 table, Innodb
would notice that this does not match it's own (old) t1 table and
generate an error.

Fixed by adding code in truncate table that if we are under lock tables
and truncating an InnoDB table, we would close, reopen and lock the
table after truncate. This will remove the #sql table and ensure that
lock tables is using the new empty table.

Reviewer: Marko Mäkelä
2021-03-02 15:23:56 +02:00
..
archive
binlog fix binlog_xa_recover test 2021-02-22 19:43:08 +01:00
binlog_encryption fix binlog_xa_recover test 2021-02-22 19:43:08 +01:00
csv
encryption MDEV-23867: insert... select crash in compute_window_func 2020-10-23 22:36:47 +05:30
engines MDEV-24790 CAST('0e1111111111' AS DECIMAL(38,0)) returns a wrong result 2021-02-08 16:19:45 +04:00
federated MDEV-17573 Assertion in federatedx on multi-update 2020-12-09 20:15:29 +03:00
funcs_1 MDEV-24139: CHECK_CLAUSE field in INFORMATION_SCHEMA.CHECK_CONSTRAINTS truncate check constraints expressions 2020-12-07 09:56:06 +01:00
funcs_2
galera Merge branch 'bb-10.2-release' into 10.2 2021-02-22 18:43:03 +01:00
galera_3nodes Update Galera disabled.def 2021-02-11 08:02:24 +02:00
gcol MDEV-24491 db_name mismatch happens during virtual column computation 2021-01-19 16:18:37 +05:30
handler
heap
innodb MDEV-24532 Table corruption ER_NO_SUCH_TABLE_IN_ENGINE .. on table with foreign key 2021-03-02 15:23:56 +02:00
innodb_fts MDEV-24403 Segfault on CREATE TABLE with explicit FTS_DOC_ID_INDEX by multiple fields 2021-01-19 14:25:51 +03:00
innodb_gis Make innodb_gis.rtree_purge run faster 2021-02-07 14:31:48 +02:00
innodb_zip MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
jp
json
large_tests
maria MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
mariabackup MDEV-22929 MariaBackup option to report and/or continue when corruption is encountered 2020-12-01 08:08:57 +03:00
mtr/t
mtr2
multi_source MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
optimizer_unfixed_bugs
parts
percona MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
perfschema cleanup: remove slave background thread, use handle_manager thread instead 2021-01-24 11:35:55 +01:00
perfschema_stress
plugins MDEV-19442 server_audit plugin doesn't consider proxy users in server_audit_excl_users/server_audit_incl_users. 2020-12-28 15:12:32 +04:00
roles MDEV-24289: show grants missing with grant option 2020-11-26 18:10:40 +01:00
rpl MDEV-11862 rpl.rpl_semi_sync_event_after_sync 'fails if there is no semisync plugin 2021-02-15 13:41:44 +01:00
storage_engine MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
stress
sys_vars make @@wsrep_provider and @@wsrep_notify_cmd read-only 2021-02-18 19:03:01 +01:00
unit
vcol Merge branch '10.1' into 10.2 2020-10-29 15:16:53 +01:00
wsrep Merge branch 'bb-10.2-release' into 10.2 2021-02-22 18:43:03 +01:00