Commit 89633995 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-16678: Actually ignore #sql-ib tables

Apparently, regular expression operations that remove entire lines
of output do not work with list_files, and hence the adjustments in
commit 1c282d4b were ineffective.

For cat_file (preceded by list_files_write_file) the replace_regex
does work.

For some reason, for suite/parts/inc/partition_crash_exchange.inc
some file names will be lost when using list_files_write_file
instead of list_files.

We use a precise pattern match. dict_mem_create_temporary_tablename()
is generating #sql-ib names followed by decimal digits only.
parent 28c89b71
...@@ -98,7 +98,7 @@ call mtr.check_testcase(); ...@@ -98,7 +98,7 @@ call mtr.check_testcase();
let $datadir=`select @@datadir`; let $datadir=`select @@datadir`;
list_files $datadir mysql_upgrade_info; list_files $datadir mysql_upgrade_info;
list_files_write_file $datadir.tempfiles.txt $datadir/test #sql*; list_files_write_file $datadir.tempfiles.txt $datadir/test #sql*;
--replace_regex /#sql-ib[0-9a-f]+\.ibd\n// --replace_regex /#sql-ib[1-9][0-9]*\.ibd\n//
cat_file $datadir.tempfiles.txt; cat_file $datadir.tempfiles.txt;
remove_file $datadir.tempfiles.txt; remove_file $datadir.tempfiles.txt;
list_files $datadir/mysql #sql*; list_files $datadir/mysql #sql*;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# This is a copy of innodb-alter.test except using remote tablespaces # This is a copy of innodb-alter.test except using remote tablespaces
# and showing those files. # and showing those files.
# #
SET @innodb_file_per_table_orig=@@GLOBAL.innodb_file_per_table;
SET default_storage_engine=InnoDB; SET default_storage_engine=InnoDB;
SET GLOBAL innodb_file_per_table=ON; SET GLOBAL innodb_file_per_table=ON;
SET NAMES utf8mb4; SET NAMES utf8mb4;
...@@ -1588,3 +1589,4 @@ DROP TABLE tt, t1o, sys_tables, sys_indexes, sys_foreign; ...@@ -1588,3 +1589,4 @@ DROP TABLE tt, t1o, sys_tables, sys_indexes, sys_foreign;
### files in MYSQL_DATA_DIR/test ### files in MYSQL_DATA_DIR/test
db.opt db.opt
### files in MYSQL_TMP_DIR/alt_dir/test ### files in MYSQL_TMP_DIR/alt_dir/test
SET GLOBAL innodb_file_per_table = @innodb_file_per_table_orig;
...@@ -5,15 +5,12 @@ ...@@ -5,15 +5,12 @@
--source include/have_innodb.inc --source include/have_innodb.inc
--disable_query_log SET @innodb_file_per_table_orig=@@GLOBAL.innodb_file_per_table;
# These values can change during the test LET $regexp=/FTS_[0-9a-f_]+([A-Z0-9_]+)\.([islbd]{3})/FTS_AUX_\1.\2/ /#sql-ib[1-9][0-9]*\.ibd\n//;
LET $innodb_file_per_table_orig=`select @@innodb_file_per_table`;
LET $regexp=/FTS_[0-9a-f_]+([A-Z0-9_]+)\.([islbd]{3})/FTS_AUX_\1.\2/ /#sql-ib[0-9a-f]+\.ibd\n//;
# Set up some variables # Set up some variables
LET $MYSQL_DATA_DIR = `select @@datadir`; LET $MYSQL_DATA_DIR = `select @@datadir`;
LET $data_directory_clause = DATA DIRECTORY='$MYSQL_TMP_DIR/alt_dir'; LET $data_directory_clause = DATA DIRECTORY='$MYSQL_TMP_DIR/alt_dir';
--enable_query_log
SET default_storage_engine=InnoDB; SET default_storage_engine=InnoDB;
SET GLOBAL innodb_file_per_table=ON; SET GLOBAL innodb_file_per_table=ON;
...@@ -57,11 +54,15 @@ ALTER TABLE t1 ALTER c2 DROP DEFAULT; ...@@ -57,11 +54,15 @@ ALTER TABLE t1 ALTER c2 DROP DEFAULT;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
...@@ -70,44 +71,60 @@ ALTER TABLE t1 CHANGE c2 c2 INT AFTER c1; ...@@ -70,44 +71,60 @@ ALTER TABLE t1 CHANGE c2 c2 INT AFTER c1;
ALTER TABLE t1 CHANGE c1 c1 INT FIRST; ALTER TABLE t1 CHANGE c1 c1 INT FIRST;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
ALTER TABLE t1 CHANGE C2 c3 INT; ALTER TABLE t1 CHANGE C2 c3 INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
ALTER TABLE t1 CHANGE c3 C INT; ALTER TABLE t1 CHANGE c3 C INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
ALTER TABLE t1 CHANGE C Cöŀumň_TWO INT; ALTER TABLE t1 CHANGE C Cöŀumň_TWO INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
SELECT i.* FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN_COLS i SELECT i.* FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN_COLS i
INNER JOIN sys_foreign sf ON i.ID = sf.ID; INNER JOIN sys_foreign sf ON i.ID = sf.ID;
...@@ -120,11 +137,15 @@ ALTER TABLE t1 CHANGE cöĿǖmň_two c3 INT; ...@@ -120,11 +137,15 @@ ALTER TABLE t1 CHANGE cöĿǖmň_two c3 INT;
ALTER TABLE t1 CHANGE cÖĿUMŇ_two c3 INT, RENAME TO t3; ALTER TABLE t1 CHANGE cÖĿUMŇ_two c3 INT, RENAME TO t3;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
SELECT st.NAME, i.NAME SELECT st.NAME, i.NAME
FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i
...@@ -143,11 +164,15 @@ ALTER TABLE t3 CHANGE c3 ...@@ -143,11 +164,15 @@ ALTER TABLE t3 CHANGE c3
`1234567890123456789012345678901234567890123456789012345678901234` INT; `1234567890123456789012345678901234567890123456789012345678901234` INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t3; SHOW CREATE TABLE t3;
...@@ -168,11 +193,15 @@ ALTER TABLE t3 CHANGE ...@@ -168,11 +193,15 @@ ALTER TABLE t3 CHANGE
`倀倁倂倃倄倅倆倇倈倉倊個倌倍倎倏倐們倒倓倔倕倖倗倘候倚倛倜倝倞借倠倡倢倣値倥倦倧倨倩倪倫倬倭倮倯倰倱倲倳倴倵倶倷倸倹债倻值倽倾ä` INT; `倀倁倂倃倄倅倆倇倈倉倊個倌倍倎倏倐們倒倓倔倕倖倗倘候倚倛倜倝倞借倠倡倢倣値倥倦倧倨倩倪倫倬倭倮倯倰倱倲倳倴倵倶倷倸倹债倻值倽倾ä` INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
# check that the rename is case-insensitive (note the upper-case ä at end) # check that the rename is case-insensitive (note the upper-case ä at end)
ALTER TABLE t3 CHANGE ALTER TABLE t3 CHANGE
...@@ -180,11 +209,15 @@ ALTER TABLE t3 CHANGE ...@@ -180,11 +209,15 @@ ALTER TABLE t3 CHANGE
c3 INT; c3 INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
# test with 4-byte UTF-8 (should be disallowed) # test with 4-byte UTF-8 (should be disallowed)
--error ER_INVALID_CHARACTER_STRING --error ER_INVALID_CHARACTER_STRING
...@@ -196,11 +229,15 @@ ALTER TABLE t3 CHANGE c3 😲 INT; ...@@ -196,11 +229,15 @@ ALTER TABLE t3 CHANGE c3 😲 INT;
ALTER TABLE t3 RENAME TO t2; ALTER TABLE t3 RENAME TO t2;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
SELECT st.NAME, i.NAME SELECT st.NAME, i.NAME
FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i
...@@ -216,11 +253,15 @@ FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i ...@@ -216,11 +253,15 @@ FROM sys_tables st INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_TABLES i
ON i.TABLE_ID=st.TABLE_ID; ON i.TABLE_ID=st.TABLE_ID;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
...@@ -256,11 +297,15 @@ SET foreign_key_checks=1; ...@@ -256,11 +297,15 @@ SET foreign_key_checks=1;
SHOW CREATE TABLE t1c; SHOW CREATE TABLE t1c;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
...@@ -277,11 +322,15 @@ SET foreign_key_checks=0; ...@@ -277,11 +322,15 @@ SET foreign_key_checks=0;
ALTER TABLE t1c DROP INDEX C3; ALTER TABLE t1c DROP INDEX C3;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
SET foreign_key_checks=1; SET foreign_key_checks=1;
...@@ -293,11 +342,15 @@ SHOW CREATE TABLE t1c; ...@@ -293,11 +342,15 @@ SHOW CREATE TABLE t1c;
ALTER TABLE t1c DROP FOREIGN KEY t1C3; ALTER TABLE t1c DROP FOREIGN KEY t1C3;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files $MYSQL_DATA_DIR/test --list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1c; SHOW CREATE TABLE t1c;
...@@ -306,11 +359,15 @@ SHOW CREATE TABLE t1c; ...@@ -306,11 +359,15 @@ SHOW CREATE TABLE t1c;
ALTER TABLE t1c DROP INDEX c2, DROP FOREIGN KEY t1C2; ALTER TABLE t1c DROP INDEX c2, DROP FOREIGN KEY t1C2;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1c; SHOW CREATE TABLE t1c;
...@@ -320,11 +377,15 @@ SHOW CREATE TABLE t1c; ...@@ -320,11 +377,15 @@ SHOW CREATE TABLE t1c;
ALTER TABLE t1 DROP INDEX c2, CHANGE c3 c2 INT; ALTER TABLE t1 DROP INDEX c2, CHANGE c3 c2 INT;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
...@@ -343,11 +404,15 @@ CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt, ...@@ -343,11 +404,15 @@ CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
ALGORITHM=INPLACE, LOCK=SHARED; ALGORITHM=INPLACE, LOCK=SHARED;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
# The output should be empty, because index->id was reassigned. # The output should be empty, because index->id was reassigned.
-- source suite/innodb/include/innodb_dict.inc -- source suite/innodb/include/innodb_dict.inc
...@@ -387,11 +452,15 @@ CREATE TABLE t1n LIKE t1o; ...@@ -387,11 +452,15 @@ CREATE TABLE t1n LIKE t1o;
ALTER TABLE t1n ADD FULLTEXT INDEX(ct); ALTER TABLE t1n ADD FULLTEXT INDEX(ct);
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--error ER_WRONG_COLUMN_NAME --error ER_WRONG_COLUMN_NAME
ALTER TABLE t1n CHANGE c1 Fts_DOC_ID INT, ALGORITHM=INPLACE; ALTER TABLE t1n CHANGE c1 Fts_DOC_ID INT, ALGORITHM=INPLACE;
...@@ -402,30 +471,42 @@ ALTER TABLE t1n CHANGE FTS_DOC_ID c11 INT, ALGORITHM=INPLACE; ...@@ -402,30 +471,42 @@ ALTER TABLE t1n CHANGE FTS_DOC_ID c11 INT, ALGORITHM=INPLACE;
ALTER TABLE t1n CHANGE c1 FTS_DOC_ïD INT, ALGORITHM=INPLACE; ALTER TABLE t1n CHANGE c1 FTS_DOC_ïD INT, ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
ALTER TABLE t1n CHANGE FTS_DOC_ÏD c1 INT, ALGORITHM=INPLACE; ALTER TABLE t1n CHANGE FTS_DOC_ÏD c1 INT, ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
ALTER TABLE t1n CHANGE c1 c2 INT, CHANGE c2 ct INT, CHANGE ct c1 TEXT, ALTER TABLE t1n CHANGE c1 c2 INT, CHANGE c2 ct INT, CHANGE ct c1 TEXT,
ALGORITHM=INPLACE; ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1n; SHOW CREATE TABLE t1n;
...@@ -433,11 +514,15 @@ ALTER TABLE t1n CHANGE c2 c1 INT, CHANGE ct c2 INT, CHANGE c1 ct TEXT, ...@@ -433,11 +514,15 @@ ALTER TABLE t1n CHANGE c2 c1 INT, CHANGE ct c2 INT, CHANGE c1 ct TEXT,
ALGORITHM=COPY; ALGORITHM=COPY;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1n; SHOW CREATE TABLE t1n;
...@@ -450,33 +535,45 @@ ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY; ...@@ -450,33 +535,45 @@ ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY;
ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE; ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1n; SHOW CREATE TABLE t1n;
ALTER TABLE t1n DROP INDEX c4; ALTER TABLE t1n DROP INDEX c4;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--error ER_DUP_FIELDNAME --error ER_DUP_FIELDNAME
ALTER TABLE t1n CHANGE c4 c1 INT, ADD INDEX(c1), ALGORITHM=INPLACE; ALTER TABLE t1n CHANGE c4 c1 INT, ADD INDEX(c1), ALGORITHM=INPLACE;
ALTER TABLE t1n CHANGE c4 c11 INT, ADD INDEX(c11), ALGORITHM=INPLACE; ALTER TABLE t1n CHANGE c4 c11 INT, ADD INDEX(c11), ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1n; SHOW CREATE TABLE t1n;
...@@ -485,22 +582,30 @@ DROP TABLE t1n; ...@@ -485,22 +582,30 @@ DROP TABLE t1n;
ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL; ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL, CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
ALGORITHM=INPLACE; ALGORITHM=INPLACE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
# This would create a hidden FTS_DOC_ID column, which cannot be done online. # This would create a hidden FTS_DOC_ID column, which cannot be done online.
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON --error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
...@@ -520,11 +625,15 @@ ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL, ...@@ -520,11 +625,15 @@ ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
DROP INDEX ct, LOCK=NONE; DROP INDEX ct, LOCK=NONE;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE t1o; SHOW CREATE TABLE t1o;
...@@ -547,21 +656,29 @@ FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN i WHERE FOR_NAME='test/t1o'; ...@@ -547,21 +656,29 @@ FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN i WHERE FOR_NAME='test/t1o';
ALTER TABLE t1o ADD UNIQUE INDEX FTS_DOC_ID_INDEX(foo_id); ALTER TABLE t1o ADD UNIQUE INDEX FTS_DOC_ID_INDEX(foo_id);
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL, ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
ADD FULLTEXT INDEX(ct); ADD FULLTEXT INDEX(ct);
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--error ER_INNODB_FT_WRONG_DOCID_INDEX --error ER_INNODB_FT_WRONG_DOCID_INDEX
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL; ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL;
...@@ -579,15 +696,14 @@ INNER JOIN sys_tables st ON i.TABLE_ID=st.TABLE_ID; ...@@ -579,15 +696,14 @@ INNER JOIN sys_tables st ON i.TABLE_ID=st.TABLE_ID;
DROP TABLE tt, t1o, sys_tables, sys_indexes, sys_foreign; DROP TABLE tt, t1o, sys_tables, sys_indexes, sys_foreign;
--echo ### files in MYSQL_DATA_DIR/test --echo ### files in MYSQL_DATA_DIR/test
--list_files_write_file $MYSQL_DATA_DIR.files.txt $MYSQL_DATA_DIR/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_DATA_DIR/test --cat_file $MYSQL_DATA_DIR.files.txt
--remove_file $MYSQL_DATA_DIR.files.txt
--echo ### files in MYSQL_TMP_DIR/alt_dir/test --echo ### files in MYSQL_TMP_DIR/alt_dir/test
--replace_regex $regexp --replace_regex $regexp
--list_files $MYSQL_TMP_DIR/alt_dir/test --list_files $MYSQL_TMP_DIR/alt_dir/test
--rmdir $MYSQL_TMP_DIR/alt_dir/test --rmdir $MYSQL_TMP_DIR/alt_dir/test
--rmdir $MYSQL_TMP_DIR/alt_dir --rmdir $MYSQL_TMP_DIR/alt_dir
-- disable_query_log SET GLOBAL innodb_file_per_table = @innodb_file_per_table_orig;
eval set global innodb_file_per_table=$innodb_file_per_table_orig;
call mtr.add_suppression("deleting orphaned .ibd file");
-- enable_query_log
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
--eval $create_statement --eval $create_statement
--eval $insert_statement --eval $insert_statement
--echo # State before crash --echo # State before crash
--list_files_write_file $DATADIR.files.txt $DATADIR/test
--replace_result #p# #P# #sp# #SP# --replace_result #p# #P# #sp# #SP#
--list_files $DATADIR/test --replace_regex /#sql-ib[1-9][0-9]*\.ibd\n//
--cat_file $DATADIR.files.txt
--remove_file $DATADIR.files.txt
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--sorted_result --sorted_result
SELECT * FROM t1; SELECT * FROM t1;
...@@ -14,14 +18,20 @@ SELECT * FROM t1; ...@@ -14,14 +18,20 @@ SELECT * FROM t1;
--error 2013 --error 2013
--eval $crash_statement --eval $crash_statement
--echo # State after crash (before recovery) --echo # State after crash (before recovery)
--replace_regex /sqlx.*\./sqlx-nnnn_nnnn./ /#p#/#P#/ /#sp#/#SP#/ /#tmp#/#TMP#/ /#sql-ib[0-9a-f]+\.ibd\n// --list_files_write_file $DATADIR.files.txt $DATADIR/test
--list_files $DATADIR/test --replace_result #p# #P# #sp# #SP# #tmp# #TMP#
--replace_regex /sqlx.*\./sqlx-nnnn_nnnn./ /#sql-ib[1-9][0-9]*\.ibd\n//
--cat_file $DATADIR.files.txt
--remove_file $DATADIR.files.txt
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--enable_reconnect --enable_reconnect
--source include/wait_until_connected_again.inc --source include/wait_until_connected_again.inc
--echo # State after crash recovery --echo # State after crash recovery
--list_files_write_file $DATADIR.files.txt $DATADIR/test
--replace_result #p# #P# #sp# #SP# --replace_result #p# #P# #sp# #SP#
--list_files $DATADIR/test --replace_regex /#sql-ib[1-9][0-9]*\.ibd\n//
--cat_file $DATADIR.files.txt
--remove_file $DATADIR.files.txt
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--sorted_result --sorted_result
SELECT * FROM t1; SELECT * FROM t1;
......
...@@ -422,16 +422,7 @@ a b ...@@ -422,16 +422,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.MYD #sqlx-nnnn_nnnn.frm
#sqlx-nnnn_nnnn.MYI
db.opt
t1#P#p0.MYD
t1#P#p0.MYI
t1#P#p1.MYD
t1#P#p1.MYI
t1.frm
t1.par
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.MYD t1#P#p0.MYD
...@@ -537,16 +528,7 @@ a b ...@@ -537,16 +528,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.MYD #sqlx-nnnn_nnnn.frm
#sqlx-nnnn_nnnn.MYI
db.opt
t1#P#p0.MYD
t1#P#p0.MYI
t1#P#p1.MYD
t1#P#p1.MYI
t1.frm
t1.par
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.MYD t1#P#p0.MYD
...@@ -652,16 +634,7 @@ a b ...@@ -652,16 +634,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.MYD #sqlx-nnnn_nnnn.frm
#sqlx-nnnn_nnnn.MYI
db.opt
t1#P#p1.MYD
t1#P#p1.MYI
t1.frm
t1.par
t2.MYD
t2.MYI
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.MYD t1#P#p0.MYD
...@@ -767,16 +740,7 @@ a b ...@@ -767,16 +740,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.MYD #sqlx-nnnn_nnnn.frm
#sqlx-nnnn_nnnn.MYI
db.opt
t1#P#p1.MYD
t1#P#p1.MYI
t1.frm
t1.par
t2.MYD
t2.MYI
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.MYD t1#P#p0.MYD
......
...@@ -6406,13 +6406,7 @@ a b ...@@ -6406,13 +6406,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.ibd #sqlx-nnnn_nnnn.frm
db.opt
t1#P#p0.ibd
t1#P#p1.ibd
t1.frm
t1.par
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.ibd t1#P#p0.ibd
...@@ -6514,13 +6508,7 @@ a b ...@@ -6514,13 +6508,7 @@ a b
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.ibd #sqlx-nnnn_nnnn.frm
db.opt
t1#P#p0.ibd
t1#P#p1.ibd
t1.frm
t1.par
t2.frm
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.ibd t1#P#p0.ibd
...@@ -6623,12 +6611,6 @@ ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ...@@ -6623,12 +6611,6 @@ ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.ibd #sqlx-nnnn_nnnn.ibd
db.opt
t1#P#p1.ibd
t1.frm
t1.par
t2.frm
t2.ibd
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.ibd t1#P#p0.ibd
...@@ -6731,12 +6713,6 @@ ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2; ...@@ -6731,12 +6713,6 @@ ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
# State after crash (before recovery) # State after crash (before recovery)
#sqlx-nnnn_nnnn.ibd #sqlx-nnnn_nnnn.ibd
db.opt
t1#P#p1.ibd
t1.frm
t1.par
t2.frm
t2.ibd
# State after crash recovery # State after crash recovery
db.opt db.opt
t1#P#p0.ibd t1#P#p0.ibd
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment