From b708b872401cc866fd2611f7db13e5888a0a8b3e Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 14 Sep 2010 20:00:10 +0200 Subject: [PATCH] Fix preserving mysqld error log across server restarts, broken by recent mtr changes. --- mysql-test/mysql-test-run.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index eb1fad0bbb2..85fc570e4b0 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -4035,7 +4035,7 @@ sub run_testcase ($$) { sub _preserve_error_log_names { my ($mysqld)= @_; my $error_log_file= $mysqld->if_exist('#log-error'); - return unless $error_log_file and -r $error_log_file; + return (undef, undef) unless $error_log_file; my $error_log_dir= dirname($error_log_file); my $save_name= $error_log_dir ."/../". $mysqld->name() .".error.log"; return ($error_log_file, $save_name);