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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
769cd00e
Commit
769cd00e
authored
Aug 27, 2007
by
davi@moksha.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge moksha.local:/Users/davi/mysql/push/bugs/25164-5.0
into moksha.local:/Users/davi/mysql/push/bugs/25164-5.1
parents
1013eb57
91e1cc21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
mysql-test/include/deadlock.inc
mysql-test/include/deadlock.inc
+26
-1
mysql-test/r/deadlock_innodb.result
mysql-test/r/deadlock_innodb.result
+11
-0
sql/lock.cc
sql/lock.cc
+2
-0
No files found.
mysql-test/include/deadlock.inc
View file @
769cd00e
...
@@ -144,4 +144,29 @@ disconnect con1;
...
@@ -144,4 +144,29 @@ disconnect con1;
disconnect
con2
;
disconnect
con2
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
# End of 4.1 tests
--
echo
End
of
4.1
tests
#
# Bug#25164 create table `a` as select * from `A` hangs
#
set
storage_engine
=
innodb
;
--
disable_warnings
drop
table
if
exists
a
;
drop
table
if
exists
A
;
--
enable_warnings
create
table
A
(
c
int
);
insert
into
A
(
c
)
values
(
0
);
--
error
0
,
ER_LOCK_DEADLOCK
,
ER_UPDATE_TABLE_USED
create
table
a
as
select
*
from
A
;
drop
table
A
;
--
disable_warnings
drop
table
if
exists
a
;
--
enable_warnings
set
storage_engine
=
default
;
--
echo
End
of
5.0
tests
.
mysql-test/r/deadlock_innodb.result
View file @
769cd00e
...
@@ -112,3 +112,14 @@ id x
...
@@ -112,3 +112,14 @@ id x
commit;
commit;
# Switch to connection default + disconnect con1 and con2
# Switch to connection default + disconnect con1 and con2
drop table t1, t2;
drop table t1, t2;
End of 4.1 tests
set storage_engine=innodb;
drop table if exists a;
drop table if exists A;
create table A (c int);
insert into A (c) values (0);
create table a as select * from A;
drop table A;
drop table if exists a;
set storage_engine=default;
End of 5.0 tests.
sql/lock.cc
View file @
769cd00e
...
@@ -276,6 +276,8 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count,
...
@@ -276,6 +276,8 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count,
thd
->
lock_id
)];
thd
->
lock_id
)];
if
(
rc
>
1
)
/* a timeout or a deadlock */
if
(
rc
>
1
)
/* a timeout or a deadlock */
{
{
if
(
sql_lock
->
table_count
)
VOID
(
unlock_external
(
thd
,
sql_lock
->
table
,
sql_lock
->
table_count
));
my_error
(
rc
,
MYF
(
0
));
my_error
(
rc
,
MYF
(
0
));
my_free
((
uchar
*
)
sql_lock
,
MYF
(
0
));
my_free
((
uchar
*
)
sql_lock
,
MYF
(
0
));
sql_lock
=
0
;
sql_lock
=
0
;
...
...
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