List:Commits« Previous MessageNext Message »
From:holyfoot Date:October 5 2007 9:22am
Subject:bk commit into 5.1 tree (holyfoot:1.2584)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of hf. When hf 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@stripped, 2007-10-05 14:21:59+05:00, holyfoot@hfmain.(none) +1 -0
  Merge bk@stripped:mysql-5.1-opt
  into  mysql.com:/home/hf/work/26527/my51-26527
  MERGE: 1.2469.13.1

  sql/ha_partition.cc@stripped, 2007-10-05 14:21:53+05:00, holyfoot@hfmain.(none) +0 -0
    Auto merged
    MERGE: 1.83.1.4

# 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:	holyfoot
# Host:	hfmain.(none)
# Root:	/home/hf/work/26527/my51-26527/RESYNC

--- 1.103/sql/ha_partition.cc	2007-10-05 14:22:04 +05:00
+++ 1.104/sql/ha_partition.cc	2007-10-05 14:22:04 +05:00
@@ -2914,12 +2914,7 @@ void ha_partition::start_bulk_insert(ha_
   handler **file;
   DBUG_ENTER("ha_partition::start_bulk_insert");
 
-  if (!rows)
-  {
-    /* Avoid allocation big caches in all underlaying handlers */
-    DBUG_VOID_RETURN;
-  }
-  rows= rows/m_tot_parts + 1;
+  rows= rows ? rows/m_tot_parts + 1 : 0;
   file= m_file;
   do
   {
Thread
bk commit into 5.1 tree (holyfoot:1.2584)holyfoot5 Oct