mirror of
https://github.com/MariaDB/server.git
synced 2025-08-26 01:44:06 +03:00
MDEV-5938: Exec_master_log_pos not updated at log rotate in parallel replication
The code did not correctly handle the update of position for Rotate events in the binlog/relaylog when using parallel replication.
This commit is contained in:
@@ -801,11 +801,29 @@ a b
|
||||
5 NULL
|
||||
6 6
|
||||
7 NULL
|
||||
*** MDEV-5938: Exec_master_log_pos not updated at log rotate in parallel replication ***
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL slave_parallel_threads=1;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
include/start_slave.inc
|
||||
CREATE TABLE t5 (a INT PRIMARY KEY, b INT);
|
||||
INSERT INTO t5 VALUES (1,1);
|
||||
INSERT INTO t5 VALUES (2,2), (3,8);
|
||||
INSERT INTO t5 VALUES (4,16);
|
||||
test_check
|
||||
OK
|
||||
test_check
|
||||
OK
|
||||
FLUSH LOGS;
|
||||
test_check
|
||||
OK
|
||||
test_check
|
||||
OK
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
|
||||
include/start_slave.inc
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
DROP function foo;
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
DROP TABLE t1,t2,t3,t4,t5;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user