2006-12-01 09:49:19 +01:00
|
|
|
#
|
|
|
|
# Bug#17733 Flushing logs causes daily server crash
|
|
|
|
#
|
2015-06-05 11:43:05 -04:00
|
|
|
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
2019-08-30 16:06:54 +03:00
|
|
|
set @save_expire_logs_days=@@global.expire_logs_days;
|
|
|
|
|
2006-12-01 09:49:19 +01:00
|
|
|
flush logs;
|
|
|
|
set global expire_logs_days = 3;
|
2019-08-30 16:06:54 +03:00
|
|
|
let $relay_prefix=`select concat(substring_index(@@relay_log,"-",1),"-")`;
|
2007-03-05 02:09:24 +04:00
|
|
|
show variables like 'log_bin%';
|
2019-08-30 16:06:54 +03:00
|
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $relay_prefix XXX-
|
2015-06-05 11:43:05 -04:00
|
|
|
show variables like 'relay_log%';
|
2006-12-01 09:49:19 +01:00
|
|
|
flush logs;
|
2007-03-05 02:09:24 +04:00
|
|
|
show variables like 'log_bin%';
|
2019-08-30 16:06:54 +03:00
|
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $relay_prefix XXX-
|
2015-06-05 11:43:05 -04:00
|
|
|
show variables like 'relay_log%';
|
2019-08-30 16:06:54 +03:00
|
|
|
set global expire_logs_days=@save_expire_logs_days;
|