summaryrefslogtreecommitdiff
path: root/mysql-test/main/flush2.test
blob: 6c06eea0f986c56a674aeedd954af8ec03e0ae1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Bug#17733 Flushing logs causes daily server crash
#

--source include/not_embedded.inc

set @save_expire_logs_days=@@global.expire_logs_days;

flush logs;
set global expire_logs_days = 3;
let $relay_prefix=`select concat(substring_index(@@relay_log,"-",1),"-")`;
show variables like 'log_bin%';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $relay_prefix XXX-
show variables like 'relay_log%';
flush logs;
show variables like 'log_bin%';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $relay_prefix XXX-
show variables like 'relay_log%';
set global expire_logs_days=@save_expire_logs_days;