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
5a360fa9
Commit
5a360fa9
authored
Aug 27, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge moksha.local:/Users/davi/mysql/push/mysql-5.1-runtime
into moksha.local:/Users/davi/mysql/push/bugs/29936-5.1
parents
3286a248
dad4d61b
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 @
5a360fa9
...
...
@@ -144,4 +144,29 @@ disconnect con1;
disconnect
con2
;
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 @
5a360fa9
...
...
@@ -112,3 +112,14 @@ id x
commit;
# Switch to connection default + disconnect con1 and con2
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 @
5a360fa9
...
...
@@ -276,6 +276,8 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count,
thd
->
lock_id
)];
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_free
((
uchar
*
)
sql_lock
,
MYF
(
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