MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Martin Skold Date:August 31 2009 2:53pm
Subject:bzr commit into mysql-5.1-telco-6.2 branch (Martin.Skold:2969) Bug#46712
View as plain text  
#At file:///home/marty/MySQL/mysql-5.1-telco-6.2/

 2969 Martin Skold	2009-08-31
      Bug #46712 Auto_increment work incorrectly when using triggers and NDB Cluster, increasing prefetch when batch size is known to not degrade table load performance
      modified:
        sql/ha_ndbcluster.cc

=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc	2009-08-31 09:47:30 +0000
+++ b/sql/ha_ndbcluster.cc	2009-08-31 14:53:01 +0000
@@ -4307,7 +4307,11 @@ void ha_ndbcluster::start_bulk_insert(ha
       : NDB_DEFAULT_AUTO_PREFETCH;
   }
   else
-    m_rows_to_insert= rows; 
+  {
+    m_rows_to_insert= rows;
+    if (m_autoincrement_prefetch < m_rows_to_insert)
+      m_autoincrement_prefetch= m_rows_to_insert;
+  }
 
   DBUG_VOID_RETURN;
 }

Thread
bzr commit into mysql-5.1-telco-6.2 branch (Martin.Skold:2969) Bug#46712Martin Skold31 Aug