diff options
author | unknown <magnus@msdesk.mysql.com> | 2005-03-31 14:33:50 +0200 |
---|---|---|
committer | unknown <magnus@msdesk.mysql.com> | 2005-03-31 14:33:50 +0200 |
commit | df7f4cc50efd03288abfc0e1c4f84a895b08270d (patch) | |
tree | 1745ee22c6e65e0f79c6cecdf09bd15633e7c479 /sql/ha_ndbcluster.cc | |
parent | 750180d2998cc7d04e4a0fb4ccec8b5214c3f145 (diff) | |
download | mariadb-git-df7f4cc50efd03288abfc0e1c4f84a895b08270d.tar.gz |
BUG#8585 ndb_cache2
- When deleting from a cursor the m_rows_changed variable was not properly incremented to indicate that m_share->commit_count should be cleared at end of trans.
sql/ha_ndbcluster.cc:
Moved increment of m_rows_changed to higher up in the function.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index edeb702145d..8dfc2d82ccc 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -2171,6 +2171,7 @@ int ha_ndbcluster::delete_row(const byte *record) DBUG_ENTER("delete_row"); statistic_increment(thd->status_var.ha_delete_count,&LOCK_status); + m_rows_changed++; if (cursor) { @@ -2221,8 +2222,6 @@ int ha_ndbcluster::delete_row(const byte *record) } } - m_rows_changed++; - // Execute delete operation if (execute_no_commit(this,trans) != 0) { no_uncommitted_rows_execute_failure(); |