mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
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.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user