| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
RESET MASTER; |
| 5 |
SET @@GLOBAL.rpl_semi_sync_master_enabled = 1; |
| 6 |
connection slave; |
| 7 |
include/stop_slave.inc |
| 8 |
SET @@GLOBAL. rpl_semi_sync_slave_enabled = 1; |
| 9 |
include/start_slave.inc |
| 10 |
connection master; |
| 11 |
CREATE TABLE t1 (a INT); |
| 12 |
INSERT INTO t1 SET a = 1; |
| 13 |
include/save_master_gtid.inc |
| 14 |
FLUSH LOGS; |
| 15 |
INSERT INTO t1 SET a = 2; |
| 16 |
connection slave; |
| 17 |
connection slave; |
| 18 |
include/stop_slave_sql.inc |
| 19 |
connection master; |
| 20 |
INSERT INTO t1 SET a = 3; |
| 21 |
include/sync_slave_io_with_master.inc |
| 22 |
connection slave; |
| 23 |
include/stop_slave_io.inc |
| 24 |
connection master; |
| 25 |
RESET MASTER; |
| 26 |
SET @@global.gtid_binlog_state = '0-1-2'; |
| 27 |
connection slave; |
| 28 |
CHANGE MASTER TO MASTER_USE_GTID = slave_pos; |
| 29 |
SET @@global.gtid_slave_pos = '0-1-2'; |
| 30 |
include/start_slave.inc |
| 31 |
connection master; |
| 32 |
INSERT INTO t1 SET a = 4; |
| 33 |
connection master; |
| 34 |
DROP TABLE t1; |
| 35 |
SET @@GLOBAL. rpl_semi_sync_master_enabled = 0; |
| 36 |
connection slave; |
| 37 |
include/stop_slave.inc |
| 38 |
SET @@GLOBAL. rpl_semi_sync_slave_enabled = 0; |
| 39 |
include/start_slave.inc |
| 40 |
include/rpl_end.inc |