21 lines
689 B
Plaintext
21 lines
689 B
Plaintext
|
|
#
|
|
# Bug#17733 Flushing logs causes daily server crash
|
|
#
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/not_relay_log_info_table.inc
|
|
# The hostname needs to be stripped off its extensions as even
|
|
# in code we use the stripped hostname as default basename
|
|
--let $HOST_NAME= `SELECT SUBSTRING_INDEX(@@hostname, '.', 1)`
|
|
flush logs;
|
|
set global expire_logs_days = 3;
|
|
show variables like 'log_bin%';
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $HOST_NAME hostname
|
|
show variables like 'relay_log%';
|
|
flush logs;
|
|
show variables like 'log_bin%';
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $HOST_NAME hostname
|
|
show variables like 'relay_log%';
|
|
set global expire_logs_days = 0;
|