Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6cf8672f
Commit
6cf8672f
authored
Jun 16, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix innodb_bug12902967 to pass when aio check on /dev/shm fails
parent
bf5df8cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
mysql-test/suite/innodb/r/innodb_bug12902967.result
mysql-test/suite/innodb/r/innodb_bug12902967.result
+1
-1
mysql-test/suite/innodb/t/innodb_bug12902967.test
mysql-test/suite/innodb/t/innodb_bug12902967.test
+3
-15
No files found.
mysql-test/suite/innodb/r/innodb_bug12902967.result
View file @
6cf8672f
create table t1 (f1 integer primary key) engine innodb;
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)
InnoDB: which are not compatible with the new table definition.
InnoDB: has or is referenced in foreign key constraints
InnoDB: which are not compatible with the new table definition.
drop table t1;
mysql-test/suite/innodb/t/innodb_bug12902967.test
View file @
6cf8672f
...
...
@@ -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
);
--
source
include
/
restart_mysqld
.
inc
perl
;
$file
=
"
$ENV
{
'error_log'
}
"
;
open
(
FILE
,
$file
)
||
die
"can't open file! (
$file
)
\n
"
;
@
lines
=
<
FILE
>
;
close
(
FILE
);
$count
=
0
;
foreach
$line
(
reverse
@
lines
)
{
if
(
$line
=~
"^InnoDB:"
)
{
++
$count
;
print
"
$line
"
;
if
(
$count
==
2
)
{
last
;
}
}
}
$file
=
$ENV
{
error_log
};
open
(
FILE
,
'<'
,
$file
)
or
die
"can't open(<
$file
): $!
\n
"
;
print
((
grep
{
/^
InnoDB
:/
and
not
/
aio
/
i
}
<
FILE
>
)[
-
2.
.-
1
]);
EOF
drop
table
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment