| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
# |
| 4 |
# MDEV-31404 Implement binlog_space_limit |
| 5 |
# |
| 6 |
# Test that master is not deleting binary logs before slave has a |
| 7 |
# chance to digest them |
| 8 |
select @@global.max_binlog_total_size; |
| 9 |
@@global.max_binlog_total_size |
| 10 |
1500 |
| 11 |
select @@global.max_binlog_size; |
| 12 |
@@global.max_binlog_size |
| 13 |
4096 |
| 14 |
connection slave; |
| 15 |
STOP SLAVE IO_THREAD; |
| 16 |
include/wait_for_slave_io_to_stop.inc |
| 17 |
connection master; |
| 18 |
kill DUMP_THREAD; |
| 19 |
CREATE TABLE `t1` ( |
| 20 |
`v1` int(11) DEFAULT NULL, |
| 21 |
`v2` varchar(8000) DEFAULT NULL, |
| 22 |
KEY `v1` (`v1`) |
| 23 |
); |
| 24 |
FLUSH LOGS; |
| 25 |
FLUSH LOGS; |
| 26 |
FLUSH LOGS; |
| 27 |
show binary logs; |
| 28 |
Log_name File_size |
| 29 |
binary.000001 # |
| 30 |
binary.000002 # |
| 31 |
binary.000003 # |
| 32 |
binary.000004 # |
| 33 |
INSERT INTO t1 VALUES (0,repeat("a",3000)); |
| 34 |
show binary logs; |
| 35 |
Log_name File_size |
| 36 |
binary.000001 # |
| 37 |
binary.000002 # |
| 38 |
binary.000003 # |
| 39 |
binary.000004 # |
| 40 |
connection slave; |
| 41 |
START SLAVE IO_THREAD; |
| 42 |
connection master; |
| 43 |
connection slave; |
| 44 |
connection master; |
| 45 |
DROP TABLE t1; |
| 46 |
show binary logs; |
| 47 |
Log_name File_size |
| 48 |
binary.000004 # |
| 49 |
include/rpl_end.inc |