MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:June 7 2010 11:32am
Subject:bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2911) Bug#53374
View as plain text  
#At file:///home/bm136801/my/failperl-51/ based on revid:bjorn.munch@stripped

 2911 Bjorn Munch	2010-06-07
      Bug #53374 Don't delete temporary perl file if perl fails
      Simple condition on the delete stmt
      But NB: next mtr run will clean up and remove the temp file

    modified:
      client/mysqltest.cc
=== modified file 'client/mysqltest.cc'
--- a/client/mysqltest.cc	2010-06-02 14:23:29 +0000
+++ b/client/mysqltest.cc	2010-06-07 11:30:23 +0000
@@ -3785,8 +3785,9 @@ void do_perl(struct st_command *command)
     }
     error= pclose(res_file);
 
-    /* Remove the temporary file */
-    my_delete(temp_file_path, MYF(0));
+    /* Remove the temporary file, but keep it if perl failed */
+    if (!error)
+      my_delete(temp_file_path, MYF(0));
 
     handle_command_error(command, WEXITSTATUS(error));
   }


Attachment: [text/bzr-bundle] bzr/bjorn.munch@sun.com-20100607113023-0a6gfs39efa445m0.bundle
Thread
bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2911) Bug#53374Bjorn Munch7 Jun