diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-07 10:57:38 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-07 10:57:38 +0300 |
commit | 867617a97684cdf2c8df326d9a986c2cae779796 (patch) | |
tree | 3bedef66d55e986d543697c241eea40f9757bf5c /mysql-test | |
parent | 6b3e2ec10f91ec47a792965c248693e836e9dbae (diff) | |
download | mariadb-git-867617a97684cdf2c8df326d9a986c2cae779796.tar.gz |
MDEV-18309: InnoDB reports bogus errors about missing #sql-*.ibd on startup
This is a follow-up to MDEV-18733. As part of that fix, we made
dict_check_sys_tables() skip tables that would be dropped by
row_mysql_drop_garbage_tables().
DICT_ERR_IGNORE_DROP: A new mode where the file should not be attempted
to be opened.
dict_load_tablespace(): Do not try to load the tablespace if
DICT_ERR_IGNORE_DROP has been specified.
row_mysql_drop_garbage_tables(): Pass the DICT_ERR_IGNORE_DROP mode.
fil_space_for_table_exists_in_mem(): Remove a parameter.
The only caller that passed print_error_if_does_not_exist=true
was row_drop_single_table_tablespace().
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/suite/innodb/t/drop_table_background.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mysql-test/suite/innodb/t/drop_table_background.test b/mysql-test/suite/innodb/t/drop_table_background.test index 8d82bea9675..20101dada84 100644 --- a/mysql-test/suite/innodb/t/drop_table_background.test +++ b/mysql-test/suite/innodb/t/drop_table_background.test @@ -3,6 +3,8 @@ # Embedded server does not support restarting --source include/not_embedded.inc +let $MYSQLD_DATADIR=`select @@datadir`; + CREATE TABLE t(c0 SERIAL, c1 INT, c2 INT, c3 INT, c4 INT, KEY(c1), KEY(c2), KEY(c2,c1), KEY(c3), KEY(c3,c1), KEY(c3,c2), KEY(c3,c2,c1), @@ -32,7 +34,9 @@ CREATE TABLE target (PRIMARY KEY(c1)) ENGINE=InnoDB SELECT * FROM t; --error ER_NO_SUCH_TABLE SELECT * from target; DROP TABLE t; ---source include/restart_mysqld.inc +--source include/shutdown_mysqld.inc +--remove_files_wildcard $MYSQLD_DATADIR/test #sql-*.ibd +--source include/start_mysqld.inc CREATE TABLE t (a INT) ENGINE=InnoDB; DROP TABLE t; --error ER_BAD_TABLE_ERROR |