diff options
author | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-10-05 14:57:51 +0200 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-10-05 14:57:51 +0200 |
commit | dd1d7ff161e22d697eec3c40893d380b0c0ef0bb (patch) | |
tree | 03fb3ff555edd8ed2c423b67d536331b522ee627 /plugin | |
parent | bd09e49843b83bb96bd64b20ce049f940ca4cc68 (diff) | |
download | mariadb-git-dd1d7ff161e22d697eec3c40893d380b0c0ef0bb.tar.gz |
Bug#55091: Server crashes on ADD PARTITION after a failed attempt
In case of failure in ALTER ... PARTITION under LOCK TABLE
the server could crash, due to it had modified the locked
table object, which was not reverted in case of failure,
resulting in a bad table definition used after the failed
command.
Solved by always closing the LOCKED TABLE, even in case
of error.
Note: this is a 5.1-only fix, bug#56172 fixed it in 5.5+
mysql-test/r/partition_innodb_plugin.result:
updated result
mysql-test/t/disabled.def:
Only disabled valgrind instead.
mysql-test/t/partition_innodb_plugin.test:
Added test
sql/sql_partition.cc:
close_thread_tables do not close LOCKED TABLEs
and destroys the table object (including part_info),
so to avoid it to be reused, always close the table
regardless of any previous failure.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions