mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
global read lock code now uses a dedicated mutex
(otherwise a deadlock when ALTER writes to binlog holding LOCK_open, it causes binlog rotation, binlog waits for prepared transactions to commit, and commit needs LOCK_open to check for global read lock) mysql-test/r/flush.result: global read lock code now uses a dedicated mutex mysql-test/t/flush.test: global read lock code now uses a dedicated mutex sql/lock.cc: global read lock code now uses a dedicated mutex sql/mysql_priv.h: global read lock code now uses a dedicated mutex sql/mysqld.cc: global read lock code now uses a dedicated mutex sql/sql_table.cc: global read lock code now uses a dedicated mutex
This commit is contained in:
@ -8,7 +8,7 @@ n
|
||||
3
|
||||
flush tables with read lock;
|
||||
drop table t2;
|
||||
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
|
||||
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||
drop table t2;
|
||||
unlock tables;
|
||||
create database mysqltest;
|
||||
|
@ -37,7 +37,7 @@ connection con1;
|
||||
select * from t1;
|
||||
connection con2;
|
||||
flush tables with read lock;
|
||||
--error 1099;
|
||||
--error 1223
|
||||
drop table t2;
|
||||
connection con1;
|
||||
send drop table t2;
|
||||
|
Reference in New Issue
Block a user