1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
mariadb/mysql-test/t/rpl_max_binlog_size_func.test
2008-04-10 15:14:28 +02:00

38 lines
1.1 KiB
Plaintext

source include/have_log_bin.inc;
###############################################################################
# Begin the functionality testing of max_binlog_size #
###############################################################################
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
#==============================================================
--echo '--- check if log file is rotated after 4096 bytes ----'
#==============================================================
SET @@global.max_binlog_size = 4096;
CREATE TABLE t1(a CHAR(5));
# around 50 records are required to rotate bin log
let $a = 50;
--disable_query_log
while ($a){
INSERT INTO t1 VALUES ('mysql');
dec $a;
}
--enable_query_log
--sleep 2
# if log file is not created then this will fail
--file_exists var/master-data/mylog.000002
--echo 'mylog.000002 exists'
###############################################################################
# End of functionality testing for max_binlog_size #
###############################################################################