mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
6a2ce08600
This fixes a problem in replication where RESET SLAVE could crash a running slave. mysql-test/r/rpl_failsafe.result: Added missing drop mysql-test/r/rpl_log_pos.result: Added slave stop before change master mysql-test/t/rpl_log_pos.test: Added slave stop before change master sql/sql_parse.cc: reset_slave() sends it's own errors sql/sql_repl.cc: reset_slave() sends it own error. RESET SLAVE and CHANGE MASTER will now give an error if slave is running. This fixes a problem in replication where RESET SLAVE could crash a running slave.
34 lines
838 B
Text
34 lines
838 B
Text
slave stop;
|
|
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;
|
|
slave start;
|
|
show variables like 'rpl_recovery_rank';
|
|
Variable_name Value
|
|
rpl_recovery_rank 1
|
|
show status like 'Rpl_status';
|
|
Variable_name Value
|
|
Rpl_status AUTH_MASTER
|
|
create table t1(n int);
|
|
drop table t1;
|
|
show variables like 'rpl_recovery_rank';
|
|
Variable_name Value
|
|
rpl_recovery_rank 2
|
|
show status like 'Rpl_status';
|
|
Variable_name Value
|
|
Rpl_status ACTIVE_SLAVE
|
|
slave start;
|
|
show variables like 'rpl_recovery_rank';
|
|
Variable_name Value
|
|
rpl_recovery_rank 3
|
|
show status like 'Rpl_status';
|
|
Variable_name Value
|
|
Rpl_status ACTIVE_SLAVE
|
|
slave start;
|
|
show variables like 'rpl_recovery_rank';
|
|
Variable_name Value
|
|
rpl_recovery_rank 4
|
|
show status like 'Rpl_status';
|
|
Variable_name Value
|
|
Rpl_status ACTIVE_SLAVE
|