mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fixed ya main.flush_read_lock sporadic failure
Use different signal names, so that subsequent WAIT_FOR is not awaken by previous signal.
This commit is contained in:
@ -2106,15 +2106,16 @@ CREATE TABLE mysqltest.t1(a INT);
|
||||
HANDLER mysqltest.t1 OPEN as t1;
|
||||
|
||||
connect (con1,localhost,root,,);
|
||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready1';
|
||||
--send LOCK TABLE mysqltest.t1 WRITE
|
||||
|
||||
connect (con2,localhost,root,,);
|
||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
||||
SET DEBUG_SYNC= 'now WAIT_FOR ready1';
|
||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready2';
|
||||
--send DROP DATABASE mysqltest
|
||||
|
||||
connect (con3,localhost,root,,);
|
||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
||||
SET DEBUG_SYNC= 'now WAIT_FOR ready2';
|
||||
|
||||
connection default;
|
||||
send FLUSH TABLES WITH READ LOCK;
|
||||
|
Reference in New Issue
Block a user