List:Commits« Previous MessageNext Message »
From:antony Date:May 13 2006 12:41am
Subject:bk commit into 5.1 tree (acurtis:1.2392)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of acurtis. When acurtis 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.2392 06/05/12 17:40:58 acurtis@stripped +1 -0
  Merge bk-internal:/home/bk/mysql-5.1-new
  into  xiphis.org:/home/acurtis/mysql-5.1-merge

  sql/sql_table.cc
    1.333 06/05/12 17:40:50 acurtis@stripped +0 -0
    Auto merged

# 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:	acurtis
# Host:	localhost.(none)
# Root:	/home/acurtis/mysql-5.1-merge/RESYNC

--- 1.332/sql/sql_table.cc	2006-05-12 08:42:51 -07:00
+++ 1.333/sql/sql_table.cc	2006-05-12 17:40:50 -07:00
@@ -3078,6 +3078,7 @@ bool mysql_create_table_internal(THD *th
     }
     file->set_auto_partitions(part_info);
     part_info->default_engine_type= create_info->db_type;
+    part_info->is_auto_partitioned= TRUE;
   }
   if (part_info)
   {
@@ -3138,8 +3139,8 @@ bool mysql_create_table_internal(THD *th
     }
     DBUG_PRINT("info", ("db_type = %d",
                          ha_legacy_type(part_info->default_engine_type)));
-    if (part_info->check_partition_info( &engine_type, file,
-                             create_info->max_rows))
+    if (part_info->check_partition_info(&engine_type, file,
+                                        create_info->max_rows))
       goto err;
     part_info->default_engine_type= engine_type;
 
@@ -3198,6 +3199,12 @@ bool mysql_create_table_internal(THD *th
     }
     else if (create_info->db_type != engine_type)
     {
+      /*
+        We come here when we don't use a partitioned handler.
+        Since we use a partitioned table it must be "native partitioned".
+        We have switched engine from defaults, most likely only specified
+        engines in partition clauses.
+      */
       delete file;
       if (!(file= get_new_handler((TABLE_SHARE*) 0, thd->mem_root, engine_type)))
       {
Thread
bk commit into 5.1 tree (acurtis:1.2392)antony13 May