mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -1741,14 +1741,14 @@ CREATE DATABASE mysqltest;
|
|||||||
CREATE TABLE mysqltest.t1(a INT);
|
CREATE TABLE mysqltest.t1(a INT);
|
||||||
HANDLER mysqltest.t1 OPEN as t1;
|
HANDLER mysqltest.t1 OPEN as t1;
|
||||||
connect con1,localhost,root,,;
|
connect con1,localhost,root,,;
|
||||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready1';
|
||||||
LOCK TABLE mysqltest.t1 WRITE;
|
LOCK TABLE mysqltest.t1 WRITE;
|
||||||
connect con2,localhost,root,,;
|
connect con2,localhost,root,,;
|
||||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
SET DEBUG_SYNC= 'now WAIT_FOR ready1';
|
||||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready2';
|
||||||
DROP DATABASE mysqltest;
|
DROP DATABASE mysqltest;
|
||||||
connect con3,localhost,root,,;
|
connect con3,localhost,root,,;
|
||||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
SET DEBUG_SYNC= 'now WAIT_FOR ready2';
|
||||||
connection default;
|
connection default;
|
||||||
FLUSH TABLES WITH READ LOCK;
|
FLUSH TABLES WITH READ LOCK;
|
||||||
connection con3;
|
connection con3;
|
||||||
|
@ -2106,15 +2106,16 @@ CREATE TABLE mysqltest.t1(a INT);
|
|||||||
HANDLER mysqltest.t1 OPEN as t1;
|
HANDLER mysqltest.t1 OPEN as t1;
|
||||||
|
|
||||||
connect (con1,localhost,root,,);
|
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
|
--send LOCK TABLE mysqltest.t1 WRITE
|
||||||
|
|
||||||
connect (con2,localhost,root,,);
|
connect (con2,localhost,root,,);
|
||||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
SET DEBUG_SYNC= 'now WAIT_FOR ready1';
|
||||||
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready2';
|
||||||
--send DROP DATABASE mysqltest
|
--send DROP DATABASE mysqltest
|
||||||
|
|
||||||
connect (con3,localhost,root,,);
|
connect (con3,localhost,root,,);
|
||||||
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
SET DEBUG_SYNC= 'now WAIT_FOR ready2';
|
||||||
|
|
||||||
connection default;
|
connection default;
|
||||||
send FLUSH TABLES WITH READ LOCK;
|
send FLUSH TABLES WITH READ LOCK;
|
||||||
|
Reference in New Issue
Block a user