MDEV-14585: Adjust the innodb.innodb-alter-tempfile test case
This commit is contained in:
parent
69e88de0fe
commit
40f4525f43
@ -32,24 +32,12 @@ SET debug_dbug='+d,innodb_alter_commit_crash_before_commit';
|
|||||||
--error 2013
|
--error 2013
|
||||||
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
|
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
|
||||||
|
|
||||||
let TABLENAME_INC= $MYSQLTEST_VARDIR/tmp/tablename.inc;
|
remove_files_wildcard $datadir/test #sql-*.frm;
|
||||||
perl;
|
|
||||||
die unless open OUT, ">$ENV{TABLENAME_INC}";
|
|
||||||
chdir "$ENV{'datadir'}/test";
|
|
||||||
my @frm_file = map { substr($_, 0, -4) } glob "#sql-*.frm";
|
|
||||||
print OUT 'let $temp_table_name=', $frm_file[0], ';';
|
|
||||||
close OUT or die;
|
|
||||||
EOF
|
|
||||||
source $TABLENAME_INC;
|
|
||||||
remove_file $TABLENAME_INC;
|
|
||||||
|
|
||||||
--source include/start_mysqld.inc
|
--source include/start_mysqld.inc
|
||||||
|
|
||||||
show create table t1;
|
show create table t1;
|
||||||
--echo # Consecutive Alter table does not create same temporary file name
|
--echo # Consecutive Alter table does not create same temporary file name
|
||||||
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
|
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
|
||||||
--disable_query_log
|
|
||||||
eval DROP TABLE `#mysql50#$temp_table_name`;
|
|
||||||
--enable_query_log
|
|
||||||
show create table t1;
|
show create table t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user