summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authorunknown <elliot@mysql.com>2006-03-17 10:50:01 +0100
committerunknown <elliot@mysql.com>2006-03-17 10:50:01 +0100
commit2122a3f9bc192ee98359d3466c9a97ae9c760179 (patch)
treed607bb917e891eb4c34cba16583802a347b5bc1f /sql/ha_innodb.cc
parentaa3411f54b2d5e2b6069b122085926f771133437 (diff)
parent367442f754a97d87077c99bc5805b41da5ac7119 (diff)
downloadmariadb-git-2122a3f9bc192ee98359d3466c9a97ae9c760179.tar.gz
Merge mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-4.1
into mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-5.0 sql/ha_innodb.cc: Auto merged
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r--sql/ha_innodb.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 1b1326920ad..b386439aed5 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -513,6 +513,13 @@ convert_error_code_to_mysql(
return(HA_ERR_NO_SAVEPOINT);
} else if (error == (int) DB_LOCK_TABLE_FULL) {
+ /* Since we rolled back the whole transaction, we must
+ tell it also to MySQL so that MySQL knows to empty the
+ cached binlog for this transaction */
+
+ if (thd) {
+ ha_rollback(thd);
+ }
return(HA_ERR_LOCK_TABLE_FULL);
} else {