summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorunknown <gluh@eagle.(none)>2007-10-10 14:33:46 +0500
committerunknown <gluh@eagle.(none)>2007-10-10 14:33:46 +0500
commit2dd78add6b3ddba7cd5f8aa823b4890421e05ff1 (patch)
treebe27a41d9919878aab7f994971b1cdffe0b4c9fa /sql/ha_partition.cc
parent03bef972d3b508013cfcad2de294569ecdf16158 (diff)
parent9676a86aede349d76697198f9aa4c160824568bc (diff)
downloadmariadb-git-2dd78add6b3ddba7cd5f8aa823b4890421e05ff1.tar.gz
Merge mysql.com:/home/gluh/MySQL/Merge/5.1
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt libmysql/libmysql.c: Auto merged mysql-test/include/mix1.inc: Auto merged mysql-test/r/innodb_mysql.result: Auto merged sql/field.cc: Auto merged sql/ha_partition.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 200e8a97c67..4f81255b154 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -2924,12 +2924,7 @@ void ha_partition::start_bulk_insert(ha_rows rows)
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
{