mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
31 lines
998 B
Text
31 lines
998 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
set @restore_slave_net_timeout= @@global.slave_net_timeout;
|
|
set @@global.slave_net_timeout= 10;
|
|
show status like 'Slave_heartbeat_period';;
|
|
Variable_name Slave_heartbeat_period
|
|
Value 60.000
|
|
SET @saved_dbug= @@GLOBAL.debug_dbug;
|
|
SET GLOBAL debug_dbug="+d,simulate_slave_heartbeat_network_error";
|
|
CALL mtr.add_suppression('SET @master_heartbeat_period to master failed with error');
|
|
CALL mtr.add_suppression('Master command COM_REGISTER_SLAVE failed: failed registering on master, reconnecting to try again');
|
|
include/start_slave.inc
|
|
connection master;
|
|
drop table if exists t1;
|
|
CREATE TABLE t1 (a INT PRIMARY KEY);
|
|
INSERT INTO t1 VALUES (1);
|
|
connection slave;
|
|
connection slave;
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
connection master;
|
|
drop table t1;
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
SET GLOBAL debug_dbug=@saved_dbug;
|
|
set @@global.slave_net_timeout= @restore_slave_net_timeout;
|
|
include/start_slave.inc
|
|
include/rpl_end.inc
|