mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
41 lines
851 B
Text
41 lines
851 B
Text
|
########################################################################
|
||
|
# Tests for BACKUP STAGE locking that requires debug.
|
||
|
########################################################################
|
||
|
|
||
|
--source include/have_debug_sync.inc
|
||
|
|
||
|
--echo #
|
||
|
--echo # Make sure pending LOCK TABLES doesn't block BACKUP STAGE
|
||
|
--echo #
|
||
|
CREATE TABLE t1(a INT);
|
||
|
LOCK TABLE t1 READ;
|
||
|
|
||
|
--echo #
|
||
|
connect (con1,localhost,root,,);
|
||
|
SET DEBUG_SYNC= 'mdl_acquire_lock_wait SIGNAL ready';
|
||
|
--send LOCK TABLE t1 WRITE
|
||
|
|
||
|
--echo #
|
||
|
connect (con2,localhost,root,,);
|
||
|
SET DEBUG_SYNC= 'now WAIT_FOR ready';
|
||
|
BACKUP STAGE START;
|
||
|
BACKUP STAGE FLUSH;
|
||
|
BACKUP STAGE BLOCK_DDL;
|
||
|
BACKUP STAGE END;
|
||
|
disconnect con2;
|
||
|
|
||
|
--echo #
|
||
|
connection default;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--echo #
|
||
|
connection con1;
|
||
|
reap;
|
||
|
UNLOCK TABLES;
|
||
|
disconnect con1;
|
||
|
|
||
|
--echo #
|
||
|
connection default;
|
||
|
DROP TABLE t1;
|
||
|
SET DEBUG_SYNC= 'RESET';
|