Fix preserving mysqld error log across server restarts, broken by recent mtr changes.

This commit is contained in:
unknown 2010-09-14 20:00:10 +02:00
parent 0dd37e87c4
commit b708b87240

View file

@ -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);