Skip to content

Commit 1af3165

Browse files
committed
MDEV-12179: Per-engine mysql.gtid_slave_pos table
Intermediate commit. Make test case tolerant to an earlier test case changing the storage engine for mysql.gtid_slave_pos.
1 parent 4a8381a commit 1af3165

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mysql-test/suite/rpl/r/rpl_mdev12179.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ a
4848
1
4949
include/stop_slave.inc
5050
SET sql_log_bin=0;
51+
ALTER TABLE mysql.gtid_slave_pos ENGINE=MyISAM;
5152
CREATE TABLE mysql.gtid_slave_pos_innodb LIKE mysql.gtid_slave_pos;
5253
ALTER TABLE mysql.gtid_slave_pos_innodb ENGINE=InnoDB;
5354
INSERT INTO mysql.gtid_slave_pos_innodb SELECT * FROM mysql.gtid_slave_pos;

mysql-test/suite/rpl/t/rpl_mdev12179.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ SELECT * FROM t1 ORDER BY a;
4040
SELECT * FROM t1 ORDER BY a;
4141
--source include/stop_slave.inc
4242
SET sql_log_bin=0;
43+
# Reset storage engine for mysql.gtid_slave_pos in case an earlier test
44+
# might have changed it to InnoDB.
45+
ALTER TABLE mysql.gtid_slave_pos ENGINE=MyISAM;
4346
CREATE TABLE mysql.gtid_slave_pos_innodb LIKE mysql.gtid_slave_pos;
4447
ALTER TABLE mysql.gtid_slave_pos_innodb ENGINE=InnoDB;
4548
INSERT INTO mysql.gtid_slave_pos_innodb SELECT * FROM mysql.gtid_slave_pos;

0 commit comments

Comments
 (0)