diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index ac105855c02..c3dcc9950c0 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -2914,12 +2914,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 {