Debian Codegraph @

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

raw
1 -- source include/have_ndb.inc
2 -- source include/have_binlog_format_mixed_or_row.inc
3 -- source include/have_debug.inc
4
5 show variables like 'log_bin';
6
7 reset master;
8
9 use test;
10 create table stuff (a int) engine=ndb;
11
12 --echo File 1
13 insert into stuff values (1);
14 flush logs;
15
16 --echo File 2
17 insert into stuff values (1);
18 flush logs;
19
20 --echo File 3
21 insert into stuff values (1);
22 flush logs;
23
24 --echo File 4
25 insert into stuff values (1);
26 flush logs;
27
28 --echo File 5
29 insert into stuff values (1);
30 flush logs;
31
32 #show binary logs;
33 #select distinct(file) from mysql.ndb_binlog_index;
34
35 # Ignore the warning generated by ndbcluster's binlog thread
36 # when mysqld is restarted
37 --disable_query_log ONCE
38 call mtr.add_suppression("mysqld startup An incident event has been written");
39
40 --echo Now restart, should re-pickup the expire-log-days
41 --echo debug setting from the config file, and perform
42 --echo expire-logs action at restart...
43 let $mysqld_name=mysqld.1.1;
44 --source include/restart_mysqld.inc
45
46 --disable_result_log
47 --disable_query_log
48 --source include/ndb_not_readonly.inc
49 --enable_result_log
50 --enable_query_log
51
52 #show binary logs;
53 #select distinct(file) from mysql.ndb_binlog_index;
54
55 drop table stuff;
56 reset master;
57