mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@ -12,6 +12,9 @@
|
||||
--echo # Testing which locks we get from all stages
|
||||
--echo #
|
||||
|
||||
SET @saved_frequency = @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency = 1;
|
||||
--source ../suite/innodb/include/wait_all_purged.inc
|
||||
BACKUP STAGE START;
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
||||
BACKUP STAGE FLUSH;
|
||||
@ -36,8 +39,8 @@ connection default;
|
||||
--echo # testing if BACKUP STAGE FLUSH causes deadlocks with ALTER TABLE
|
||||
--echo #
|
||||
|
||||
create table t1 (a int) engine=innodb;
|
||||
|
||||
create table t1 (a int) stats_persistent= 0, engine=innodb;
|
||||
--source ../suite/innodb/include/wait_all_purged.inc
|
||||
start transaction;
|
||||
# Acquires MDL lock
|
||||
insert into t1 values (1);
|
||||
@ -123,7 +126,8 @@ drop table t1;
|
||||
--echo # testing if BACKUP STAGE FLUSH causes deadlocks with DROP TABLE
|
||||
--echo #
|
||||
|
||||
create table t1 (a int) engine=innodb;
|
||||
create table t1 (a int)stats_persistent=0, engine=innodb;
|
||||
--source ../suite/innodb/include/wait_all_purged.inc
|
||||
start transaction;
|
||||
# Acquires MDL lock
|
||||
insert into t1 values (1);
|
||||
@ -159,6 +163,7 @@ connection default;
|
||||
--echo #
|
||||
|
||||
create table t1 (a int) engine=innodb;
|
||||
--source ../suite/innodb/include/wait_all_purged.inc
|
||||
backup stage start;
|
||||
backup stage block_ddl;
|
||||
connection con1;
|
||||
@ -319,3 +324,4 @@ DROP TABLE t_permanent_myisam, t_permanent_innodb, t_permanent_aria, t_permanent
|
||||
DROP TABLE t_con1_innodb, t_con1_myisam;
|
||||
--disconnect con1
|
||||
set global lock_wait_timeout=default;
|
||||
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|
||||
|
Reference in New Issue
Block a user