1
source include/have_log_bin.inc;
3
###############################################################################
4
# Begin the functionality testing of max_binlog_size #
5
###############################################################################
7
DROP TABLE IF EXISTS t1;
11
#==============================================================
12
--echo '--- check if log file is rotated after 4096 bytes ----'
13
#==============================================================
15
SET @@global.max_binlog_size = 4096;
16
CREATE TABLE t1(a CHAR(5));
18
# around 50 records are required to rotate bin log
22
INSERT INTO t1 VALUES ('mysql');
29
# if log file is not created then this will fail
30
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
31
--file_exists $MYSQLTEST_VARDIR/master-data/mylog.000002
33
--echo 'mylog.000002 exists'
35
###############################################################################
36
# End of functionality testing for max_binlog_size #
37
###############################################################################