| 1 |
==== Initialize ==== |
| 2 |
CREATE TABLE t1 (a INT); |
| 3 |
FLUSH LOGS; |
| 4 |
PURGE BINARY LOGS TO '<CURRENT_BINLOG>'; |
| 5 |
INSERT INTO t1 VALUES (1); |
| 6 |
FLUSH LOGS; |
| 7 |
INSERT INTO t1 VALUES (2); |
| 8 |
==== pump and restore ==== |
| 9 |
# pump |
| 10 |
DROP TABLE t1; |
| 11 |
RESET MASTER; |
| 12 |
# restore |
| 13 |
==== Verify after restoring from pump ==== |
| 14 |
include/assert.inc [GTID_EXECUTED should equal master GTID_EXECUTED after pump restored] |
| 15 |
include/assert.inc [GTID_PURGED should equal master GTID_EXECUTED after pump restored] |
| 16 |
# restart |
| 17 |
include/assert.inc [GTID_EXECUTED should equal master GTID_EXECUTED after server restarted] |
| 18 |
include/assert.inc [GTID_PURGED should equal master GTID_EXECUTED after server restarted] |
| 19 |
==== Clean up ==== |
| 20 |
DROP TABLE t1; |