List:Commits« Previous MessageNext Message »
From:reggie Date:February 7 2006 12:14pm
Subject:bk commit into 5.1 tree (reggie:1.2081) BUG#17082
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of reggie. When reggie 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.2081 06/02/07 05:14:02 reggie@stripped +1 -0
  BUG# 17082 - Client hangs when creating tables with partition
  no test case needed since simply creating a partitioned table 
  reproduces it.

  sql/sql_partition.cc
    1.31 06/02/07 05:11:30 reggie@stripped +2 -1
    the O_RDWR mode and MY_WME were used in this code before the switch
    was made to create_temp_file.  The parameters are still there
    so we just plug in the mode and WME so the underlying code will 
    create the temp file with the right mode.  This only affected 
    Windows.

# 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:	reggie
# Host:	linux.site
# Root:	/home/reggie/work/mysql-5.1

--- 1.30/sql/sql_partition.cc	2006-02-07 09:31:10 -06:00
+++ 1.31/sql/sql_partition.cc	2006-02-07 05:11:30 -06:00
@@ -2397,7 +2397,8 @@
   DBUG_ENTER("generate_partition_syntax");
 
   write_part_state= (part_info->part_state && !part_info->part_state_len);
-  if (unlikely(((fptr= create_temp_file(path,mysql_tmpdir,"psy", 0,0))) < 0))
+  if (unlikely(((fptr= create_temp_file(path,mysql_tmpdir,"psy", O_RDWR, 
+                                        MYF(MY_WME)))) < 0))
     DBUG_RETURN(NULL);
 #ifndef __WIN__
   unlink(path);
Thread
bk commit into 5.1 tree (reggie:1.2081) BUG#17082reggie7 Feb