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
d2a3ed8d
Commit
d2a3ed8d
authored
Nov 22, 2007
by
davi@endora.local
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.1-runtime
parents
1f4cff28
351c4741
Changes
3
Show 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 @
d2a3ed8d
...
@@ -55,6 +55,23 @@ flush tables with read lock;
...
@@ -55,6 +55,23 @@ flush tables with read lock;
insert into t2 values(1);
insert into t2 values(1);
unlock tables;
unlock tables;
drop table t1, t2;
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;
End of 5.0 tests
End of 5.0 tests
set @old_general_log= @@general_log;
set @old_general_log= @@general_log;
set @old_read_only= @@read_only;
set @old_read_only= @@read_only;
...
...
mysql-test/t/flush.test
View file @
d2a3ed8d
...
@@ -133,6 +133,37 @@ disconnect con3;
...
@@ -133,6 +133,37 @@ disconnect con3;
connection
default
;
connection
default
;
drop
table
t1
,
t2
;
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
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
#
#
...
...
sql/sql_parse.cc
View file @
d2a3ed8d
...
@@ -6412,7 +6412,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
...
@@ -6412,7 +6412,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
for
(;
lock_p
<
end_p
;
lock_p
++
)
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
));
my_error
(
ER_LOCK_OR_ACTIVE_TRANSACTION
,
MYF
(
0
));
return
1
;
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