Commit 6cf8672f authored by Sergei Golubchik's avatar Sergei Golubchik

fix innodb_bug12902967 to pass when aio check on /dev/shm fails

parent bf5df8cc
create table t1 (f1 integer primary key) engine innodb; create table t1 (f1 integer primary key) engine innodb;
alter table t1 add constraint c1 foreign key (f1) references t1(f1); alter table t1 add constraint c1 foreign key (f1) references t1(f1);
ERROR HY000: Error on rename of '#sql-temporary' to './test/t1' (errno: 150) ERROR HY000: Error on rename of '#sql-temporary' to './test/t1' (errno: 150)
InnoDB: which are not compatible with the new table definition.
InnoDB: has or is referenced in foreign key constraints InnoDB: has or is referenced in foreign key constraints
InnoDB: which are not compatible with the new table definition.
drop table t1; drop table t1;
...@@ -22,21 +22,9 @@ create table t1 (f1 integer primary key) engine innodb; ...@@ -22,21 +22,9 @@ create table t1 (f1 integer primary key) engine innodb;
alter table t1 add constraint c1 foreign key (f1) references t1(f1); alter table t1 add constraint c1 foreign key (f1) references t1(f1);
--source include/restart_mysqld.inc --source include/restart_mysqld.inc
perl; perl;
$file = $ENV{error_log};
$file = "$ENV{'error_log'}"; open (FILE, '<', $file) or die "can't open(< $file): $!\n";
open ( FILE, $file) || die "can't open file! ($file)\n"; print ((grep { /^InnoDB:/ and not /aio/i } <FILE>)[-2..-1]);
@lines = <FILE>;
close (FILE);
$count = 0;
foreach $line (reverse @lines) {
if ($line =~ "^InnoDB:") {
++$count;
print "$line";
if ($count == 2) {
last;
}
}
}
EOF EOF
drop table t1; drop table t1;
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