mirror of
https://github.com/MariaDB/server.git
synced 2025-10-24 07:13:33 +03:00
Backport BUG#12190 CHANGE MASTER has differ path requiremts on MASTER_LOG_FILE and RELAY_LOG_FILE
CHANGE MASTER TO command required the value for RELAY_LOG_FILE to be an absolute path, which was different from the requirement of MASTER_LOG_FILE. This patch fixed the problem by changing the value for RELAY_LOG_FILE to be the basename of the log file as that for MASTER_LOG_FILE.
This commit is contained in:
@@ -100,3 +100,20 @@ n
|
||||
1
|
||||
2
|
||||
drop table t1;
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1);
|
||||
flush logs;
|
||||
insert into t1 values (2);
|
||||
include/stop_slave.inc
|
||||
delete from t1 where a=2;
|
||||
CHANGE MASTER TO relay_log_file='slave-relay-bin.000005', relay_log_pos=4;
|
||||
start slave sql_thread;
|
||||
start slave io_thread;
|
||||
set global relay_log_purge=1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user