~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/t/rpl_max_binlog_size_func.test

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
source include/have_log_bin.inc;
 
2
 
 
3
###############################################################################
 
4
# Begin the functionality testing of max_binlog_size                          #
 
5
###############################################################################
 
6
--disable_warnings
 
7
DROP TABLE IF EXISTS t1;
 
8
--enable_warnings
 
9
 
 
10
 
 
11
#==============================================================
 
12
--echo '--- check if log file is rotated after 4096 bytes ----' 
 
13
#==============================================================
 
14
 
 
15
SET @@global.max_binlog_size = 4096;
 
16
CREATE TABLE t1(a CHAR(5));
 
17
 
 
18
# around 50 records are required to rotate bin log
 
19
let $a = 50;
 
20
--disable_query_log
 
21
while ($a){
 
22
INSERT INTO t1 VALUES ('mysql');
 
23
dec $a;
 
24
}
 
25
--enable_query_log
 
26
 
 
27
--sleep 2
 
28
 
 
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
 
32
 
 
33
--echo 'mylog.000002 exists'
 
34
 
 
35
###############################################################################
 
36
# End of functionality testing for max_binlog_size                            #
 
37
###############################################################################
 
38