mariadb/mysql-test/main/flush2.test
2019-09-03 13:17:32 +03:00

19 lines
605 B
Text

#
# 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;