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
a8b4bc81
Commit
a8b4bc81
authored
Nov 22, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge endora.local:/Users/davi/mysql/bugs/32528-5.0
into endora.local:/Users/davi/mysql/mysql-5.0-runtime
parents
a11256f4
719e64e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
mysql-test/r/flush.result
mysql-test/r/flush.result
+17
-0
mysql-test/t/flush.test
mysql-test/t/flush.test
+31
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
No files found.
mysql-test/r/flush.result
View file @
a8b4bc81
...
...
@@ -55,3 +55,20 @@ flush tables with read lock;
insert into t2 values(1);
unlock tables;
drop table t1, t2;
drop table if exists t1, t2;
set session low_priority_updates=1;
create table t1 (a int);
create table t2 (b int);
lock tables t1 write;
flush tables with read lock;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
unlock tables;
lock tables t1 read, t2 write;
flush tables with read lock;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
unlock tables;
lock tables t1 read;
flush tables with read lock;
unlock tables;
drop table t1, t2;
set session low_priority_updates=default;
mysql-test/t/flush.test
View file @
a8b4bc81
...
...
@@ -133,4 +133,35 @@ disconnect con3;
connection
default
;
drop
table
t1
,
t2
;
#
# Bug#32528 Global read lock with a low priority write lock causes a server crash
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
set
session
low_priority_updates
=
1
;
create
table
t1
(
a
int
);
create
table
t2
(
b
int
);
lock
tables
t1
write
;
--
error
ER_LOCK_OR_ACTIVE_TRANSACTION
flush
tables
with
read
lock
;
unlock
tables
;
lock
tables
t1
read
,
t2
write
;
--
error
ER_LOCK_OR_ACTIVE_TRANSACTION
flush
tables
with
read
lock
;
unlock
tables
;
lock
tables
t1
read
;
flush
tables
with
read
lock
;
unlock
tables
;
drop
table
t1
,
t2
;
set
session
low_priority_updates
=
default
;
# End of 5.0 tests
sql/sql_parse.cc
View file @
a8b4bc81
...
...
@@ -7054,7 +7054,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
for
(;
lock_p
<
end_p
;
lock_p
++
)
{
if
((
*
lock_p
)
->
type
==
TL
_WRITE
)
if
((
*
lock_p
)
->
type
>=
TL_WRITE_ALLOW
_WRITE
)
{
my_error
(
ER_LOCK_OR_ACTIVE_TRANSACTION
,
MYF
(
0
));
return
1
;
...
...
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