[Commits] Rev 2937: Fix preserving mysqld error log across server restarts, broken by recent mtr changes. in http://bazaar.launchpad.net/~maria-captains/maria/5.1

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Tue Sep 14 21:00:10 EEST 2010


At http://bazaar.launchpad.net/~maria-captains/maria/5.1

------------------------------------------------------------
revno: 2937
revision-id: knielsen at knielsen-hq.org-20100914180010-wu5s0t49an4mgi71
parent: psergey at askmonty.org-20100914172915-2tga1mh3t745fx3y
committer: knielsen at knielsen-hq.org
branch nick: mariadb-5.1
timestamp: Tue 2010-09-14 20:00:10 +0200
message:
  Fix preserving mysqld error log across server restarts, broken by recent mtr changes.
=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2010-09-07 23:00:12 +0000
+++ b/mysql-test/mysql-test-run.pl	2010-09-14 18:00:10 +0000
@@ -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);



More information about the commits mailing list