From 08e68aad6030c3d3efd33c8a61f77f53f2a2bd78 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Feb 2006 10:45:11 -0600 Subject: [PATCH] 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: 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. --- sql/sql_partition.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index c6df76f2674..abc3ce0f7f9 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -2397,7 +2397,8 @@ char *generate_partition_syntax(partition_info *part_info, 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);