| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection slave; |
| 4 |
include/stop_slave.inc |
| 5 |
set @restore_slave_net_timeout= @@global.slave_net_timeout; |
| 6 |
set @@global.slave_net_timeout= 10; |
| 7 |
show status like 'Slave_heartbeat_period';; |
| 8 |
Variable_name Slave_heartbeat_period |
| 9 |
Value 60.000 |
| 10 |
SET @saved_dbug= @@GLOBAL.debug_dbug; |
| 11 |
SET GLOBAL debug_dbug="+d,simulate_slave_heartbeat_network_error"; |
| 12 |
include/start_slave.inc |
| 13 |
connection master; |
| 14 |
drop table if exists t1; |
| 15 |
CREATE TABLE t1 (a INT PRIMARY KEY); |
| 16 |
INSERT INTO t1 VALUES (1); |
| 17 |
connection slave; |
| 18 |
connection slave; |
| 19 |
SELECT * FROM t1; |
| 20 |
a |
| 21 |
1 |
| 22 |
connection master; |
| 23 |
drop table t1; |
| 24 |
connection slave; |
| 25 |
include/stop_slave.inc |
| 26 |
SET GLOBAL debug_dbug=@saved_dbug; |
| 27 |
set @@global.slave_net_timeout= @restore_slave_net_timeout; |
| 28 |
include/start_slave.inc |
| 29 |
include/rpl_end.inc |