| 1 |
*** MDEV-5938: Exec_master_log_pos not updated at log rotate in parallel replication *** |
| 2 |
include/master-slave.inc |
| 3 |
[connection master] |
| 4 |
connection server_2; |
| 5 |
include/stop_slave.inc |
| 6 |
SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads; |
| 7 |
SET GLOBAL slave_parallel_threads=1; |
| 8 |
CHANGE MASTER TO master_use_gtid=slave_pos; |
| 9 |
include/start_slave.inc |
| 10 |
connection server_1; |
| 11 |
ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; |
| 12 |
CREATE TABLE t5 (a INT PRIMARY KEY, b INT); |
| 13 |
INSERT INTO t5 VALUES (1,1); |
| 14 |
INSERT INTO t5 VALUES (2,2), (3,8); |
| 15 |
INSERT INTO t5 VALUES (4,16); |
| 16 |
connection server_2; |
| 17 |
test_check |
| 18 |
OK |
| 19 |
test_check |
| 20 |
OK |
| 21 |
connection server_1; |
| 22 |
FLUSH LOGS; |
| 23 |
connection server_2; |
| 24 |
test_check |
| 25 |
OK |
| 26 |
test_check |
| 27 |
OK |
| 28 |
connection server_2; |
| 29 |
include/stop_slave.inc |
| 30 |
SET GLOBAL slave_parallel_threads=@old_parallel_threads; |
| 31 |
include/start_slave.inc |
| 32 |
connection server_1; |
| 33 |
DROP TABLE t5; |
| 34 |
include/rpl_end.inc |