mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix that BACKUP STAGE BLOCK_COMMIT blocks commit to the Aria engine
MDEV-22468 BACKUP STAGE BLOCK_COMMIT should block commit in the Aria engine This is needed to ensure that mariabackup works properly with Aria tables This code ads new calls to ha_maria::implicit_commit(). These will be deleted by MDEV-22531 Remove maria::implicit_commit().
This commit is contained in:
@ -251,9 +251,11 @@ BACKUP STAGE END;
|
||||
SET GLOBAL lock_wait_timeout=0;
|
||||
CREATE TABLE t_permanent_innodb (col1 INT) ENGINE = InnoDB;
|
||||
CREATE TABLE t_permanent_myisam (col1 INT) ENGINE = MyISAM;
|
||||
CREATE TABLE t_permanent_aria (col1 INT) ENGINE = Aria transactional=1;
|
||||
INSERT INTO t_permanent_innodb SET col1 = 1;
|
||||
|
||||
INSERT INTO t_permanent_myisam SET col1 = 1;
|
||||
INSERT INTO t_permanent_aria SET col1 = 1;
|
||||
|
||||
CREATE TABLE t_con1_innodb (col1 INT) ENGINE = InnoDB;
|
||||
CREATE TABLE t_con1_myisam (col1 INT) ENGINE = MyISAM;
|
||||
|
||||
@ -270,6 +272,8 @@ BACKUP STAGE BLOCK_COMMIT;
|
||||
UPDATE t_permanent_innodb SET col1 = 8;
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
UPDATE t_permanent_myisam SET col1 = 8;
|
||||
UPDATE t_permanent_aria SET col1 = 8;
|
||||
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
DROP TABLE t_con1_innodb;
|
||||
|
||||
@ -278,7 +282,12 @@ DROP TABLE t_con1_myisam;
|
||||
|
||||
--connection default
|
||||
BACKUP STAGE END;
|
||||
DROP TABLE t_permanent_myisam, t_permanent_innodb;
|
||||
|
||||
select * from t_permanent_innodb;
|
||||
select * from t_permanent_myisam;
|
||||
select * from t_permanent_aria;
|
||||
|
||||
DROP TABLE t_permanent_myisam, t_permanent_innodb, t_permanent_aria;
|
||||
DROP TABLE t_con1_innodb, t_con1_myisam;
|
||||
--disconnect con1
|
||||
set global lock_wait_timeout=default;
|
||||
|
Reference in New Issue
Block a user