summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2005-07-13 16:13:36 +0300
committermarko@hundin.mysql.fi <>2005-07-13 16:13:36 +0300
commitbf7b47d92e3ebf3f9d9199a5442e87f1d16208d8 (patch)
tree9441884f34e9d5875206e0b1049c60a6c20342aa /sql
parent4a5c65e146f59fa48144aebb88ca132d36dc2fee (diff)
downloadmariadb-git-bf7b47d92e3ebf3f9d9199a5442e87f1d16208d8.tar.gz
sql_update.cc:
mysql_update(): Call handler::unlock_row() also in the first while loop. This patch is from Heikki, and it was approved by Sergei Golubchik.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_update.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index ce4a7d6394e..8a5b4ad8eae 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -337,6 +337,8 @@ int mysql_update(THD *thd,
break;
}
}
+ else
+ table->file->unlock_row();
}
if (thd->killed && !error)
error= 1; // Aborted