| 1 |
# |
| 2 |
# TC1. Variable `read_only` is ON & rotate the binlog |
| 3 |
# |
| 4 |
SET GLOBAL read_only = ON; |
| 5 |
include/rpl_log_file_max_number.inc |
| 6 |
FLUSH BINARY LOGS; |
| 7 |
include/rpl_log_file_max_number.inc |
| 8 |
include/assert.inc ['FLUSH BINARY LOGS' rotated the binlog with 'read_only=ON'] |
| 9 |
SET GLOBAL read_only = INITIAL_OPTION_VALUE; |
| 10 |
# |
| 11 |
# TC2. Variable `super_read_only` is ON & rotate the binlog |
| 12 |
# |
| 13 |
SET GLOBAL super_read_only = ON; |
| 14 |
include/rpl_log_file_max_number.inc |
| 15 |
FLUSH BINARY LOGS; |
| 16 |
include/rpl_log_file_max_number.inc |
| 17 |
include/assert.inc ['FLUSH BINARY LOGS' rotated the binlog with 'super_read_only=ON'] |
| 18 |
SET GLOBAL super_read_only = INITIAL_OPTION_VALUE; |
| 19 |
SET GLOBAL read_only = INITIAL_OPTION_VALUE; |
| 20 |
SET GLOBAL super_read_only = INITIAL_OPTION_VALUE; |
| 21 |
# |
| 22 |
# TC3. Variable `read_only` is ON & simulate max binlog size reached |
| 23 |
# |
| 24 |
SET GLOBAL read_only = ON; |
| 25 |
include/rpl_log_file_max_number.inc |
| 26 |
SET DEBUG = "d,simulate_max_binlog_size"; |
| 27 |
DROP PROCEDURE IF EXISTS p1; |
| 28 |
Warnings: |
| 29 |
Note 1305 PROCEDURE test.p1 does not exist |
| 30 |
include/rpl_log_file_max_number.inc |
| 31 |
include/assert.inc [Having 'read_only=ON' didnot prevent the binlog of rotating when `max_binlog_size` is reached] |
| 32 |
SET GLOBAL read_only = INITIAL_OPTION_VALUE; |
| 33 |
SET GLOBAL read_only = INITIAL_OPTION_VALUE; |
| 34 |
SET GLOBAL super_read_only = INITIAL_OPTION_VALUE; |