| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
CREATE TABLE t1 (i INT); |
| 4 |
connection slave; |
| 5 |
include/stop_slave.inc |
| 6 |
CHANGE MASTER TO MASTER_DELAY= 10; |
| 7 |
include/start_slave.inc |
| 8 |
SQL_Remaining_Delay = 'NULL' |
| 9 |
Slave_SQL_Running_State = 'Slave has read all relay log; waiting for more updates' |
| 10 |
connection master; |
| 11 |
INSERT INTO t1 VALUES (1); |
| 12 |
include/sync_slave_io_with_master.inc |
| 13 |
connection slave; |
| 14 |
"Sleeping for 15" |
| 15 |
# Asserted this: Seconds_Behind_Master should be less than MASTER_DELAY |
| 16 |
# Asserted this: One row shoule be found in table t1. |
| 17 |
"======= Clean up ========" |
| 18 |
STOP SLAVE; |
| 19 |
CHANGE MASTER TO MASTER_DELAY=0; |
| 20 |
START SLAVE; |
| 21 |
connection master; |
| 22 |
DROP TABLE t1; |
| 23 |
connection slave; |
| 24 |
connection master; |
| 25 |
include/rpl_end.inc |