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:
@ -192,8 +192,10 @@ 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;
|
||||
connect con1,localhost,root,,;
|
||||
@ -207,13 +209,23 @@ connection con1;
|
||||
UPDATE t_permanent_innodb SET col1 = 8;
|
||||
UPDATE t_permanent_myisam SET col1 = 8;
|
||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||
UPDATE t_permanent_aria SET col1 = 8;
|
||||
DROP TABLE t_con1_innodb;
|
||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||
DROP TABLE t_con1_myisam;
|
||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||
connection default;
|
||||
BACKUP STAGE END;
|
||||
DROP TABLE t_permanent_myisam, t_permanent_innodb;
|
||||
select * from t_permanent_innodb;
|
||||
col1
|
||||
1
|
||||
select * from t_permanent_myisam;
|
||||
col1
|
||||
1
|
||||
select * from t_permanent_aria;
|
||||
col1
|
||||
8
|
||||
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