Debian Codegraph @

mysql-test/suite/ndb_binlog/t/ndb_binlog_size_based_rotate.test

raw
1 -- source include/have_ndb.inc
2 -- source include/have_binlog_format_mixed_or_row.inc
3
4 SET @start_value = @@global.max_binlog_size;
5 set global max_binlog_size=8192;
6 SELECT @@global.max_binlog_size;
7
8 # Create test table with a 10000 bytes column
9 create table t1 (
10 a varchar(10000) character set latin1
11 ) engine=ndb;
12
13 # Repeat in a loop enough to cause buggy code to exceed testcase timeout.
14 # Fix for bug#18845822 will eliminate the timeout.
15
16 let $1=35;
17 while ($1)
18 {
19 insert into t1 values (repeat('B', 10000));
20 --disable_result_log
21 show binlog events;
22 --enable_result_log
23
24 dec $1;
25 }
26
27 drop table t1;
28
29 set global max_binlog_size= @start_value;
30