#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped
4443 magnus.blaudd@stripped 2011-06-07
ndb
- move reset of m_is_bulk_delete flag to top of function, thus
avoiding that it have to be reset in every if branch of the function
modified:
sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc 2011-06-06 12:18:27 +0000
+++ b/sql/ha_ndbcluster.cc 2011-06-07 12:29:53 +0000
@@ -5007,6 +5007,8 @@ int ha_ndbcluster::end_bulk_delete()
{
DBUG_ENTER("end_bulk_delete");
assert(m_is_bulk_delete); // Don't allow end() without start()
+ m_is_bulk_delete = false;
+
if (m_thd_ndb->m_unsent_bytes &&
!thd_allow_batch(table->in_use) &&
!m_thd_ndb->m_handler)
@@ -5017,13 +5019,11 @@ int ha_ndbcluster::end_bulk_delete()
&ignore_count) != 0)
{
no_uncommitted_rows_execute_failure();
- m_is_bulk_delete = false;
DBUG_RETURN(ndb_err(m_thd_ndb->trans));
}
assert(m_rows_deleted >= ignore_count);
m_rows_deleted-= ignore_count;
}
- m_is_bulk_delete = false;
DBUG_RETURN(0);
}
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110607122953-3rea2wcrl26ytx6h.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4443) | magnus.blaudd | 7 Jun |