List:Internals« Previous MessageNext Message »
From:Jim Winstead Date:August 12 2005 8:44pm
Subject:bk commit into 4.1 tree (jimw:1.2376) BUG#12235
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of jimw. When jimw does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2376 05/08/12 11:44:25 jimw@stripped +1 -0
  Make sure to clean up temporary files in myisampack even when the
  -T option is used. (Bug #12235)

  myisam/myisampack.c
    1.40 05/08/12 11:44:23 jimw@stripped +8 -0
    Clean up temporary files when -T was used.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jimw
# Host:	rama.(none)
# Root:	/home/jimw/my/mysql-4.1-12235

--- 1.39/myisam/myisampack.c	2005-04-28 07:09:48 -07:00
+++ 1.40/myisam/myisampack.c	2005-08-12 11:44:23 -07:00
@@ -609,14 +609,22 @@
 	  else
 	    error=my_rename(new_name,org_name,MYF(MY_WME));
 	  if (!error)
+          {
 	    VOID(my_copystat(temp_name,org_name,MYF(MY_COPYTIME)));
+            if (tmp_dir[0])
+              VOID(my_delete(new_name,MYF(MY_WME)));
+          }
 	}
       }
       else
       {
 	if (tmp_dir[0])
+        {
 	  error=my_copy(new_name,org_name,
 			MYF(MY_WME | MY_HOLD_ORIGINAL_MODES | MY_COPYTIME));
+          if (!error)
+            VOID(my_delete(new_name,MYF(MY_WME)));
+        }
 	else
 	  error=my_redel(org_name,new_name,MYF(MY_WME | MY_COPYTIME));
       }
Thread
bk commit into 4.1 tree (jimw:1.2376) BUG#12235Jim Winstead12 Aug