diff options
author | unknown <davi@endora.local> | 2007-11-22 10:32:34 -0200 |
---|---|---|
committer | unknown <davi@endora.local> | 2007-11-22 10:32:34 -0200 |
commit | 569ced4714d81acca973af9c92074152b5e0e686 (patch) | |
tree | 155156a4b365d464c3e405c228eb238f5cf7bc08 /mysql-test/t/flush.test | |
parent | ced4375662a49560cd000f8155b66a58a9bdaaee (diff) | |
parent | 4548b328bb974cf0d6cde0386f60c100f9a52e2a (diff) | |
download | mariadb-git-569ced4714d81acca973af9c92074152b5e0e686.tar.gz |
Merge endora.local:/Users/davi/mysql/bugs/32528-5.0
into endora.local:/Users/davi/mysql/mysql-5.1-runtime
sql/sql_parse.cc:
Auto merged
mysql-test/r/flush.result:
SCCS merged
mysql-test/t/flush.test:
SCCS merged
Diffstat (limited to 'mysql-test/t/flush.test')
-rw-r--r-- | mysql-test/t/flush.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/t/flush.test b/mysql-test/t/flush.test index d58d038c3ea..794423ca211 100644 --- a/mysql-test/t/flush.test +++ b/mysql-test/t/flush.test @@ -133,6 +133,37 @@ 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; + --echo End of 5.0 tests # |