diff options
author | Nisha Gopalakrishnan <nisha.gopalakrishnan@oracle.com> | 2014-06-24 10:15:53 +0530 |
---|---|---|
committer | Nisha Gopalakrishnan <nisha.gopalakrishnan@oracle.com> | 2014-06-24 10:15:53 +0530 |
commit | 0e947e88b166c1b6e6ed82a13770c7e781a2b633 (patch) | |
tree | c5d3e66d0017459f3b4bba37b940fd67ca644888 /CMakeLists.txt | |
parent | 7141ae856164c19b6c6faefb4ea7e21a98b0c92a (diff) | |
download | mariadb-git-0e947e88b166c1b6e6ed82a13770c7e781a2b633.tar.gz |
BUG#18618561: FAILED ALTER TABLE ENGINE CHANGE WITH PARTITIONS
CORRUPTS FRM
Analysis:
---------
ALTER TABLE on a partitioned table resulted in the wrong
engine being written into the table's FRM file and displayed
in SHOW CREATE TABLE.
The prep_alter_part_table() modifies the partition_info object
for TABLE instance representing the old version of table.
If the ALTER TABLE ENGINE statement fails, the partition_info
object for the TABLE contains the altered storage engine name.
The SHOW CREATE TABLE uses the TABLE object to display the table
information, hence displays incorrect storage engine for the table.
Also a subsequent successful ALTER TABLE operation will write the
incorrect engine information into the FRM file.
Fix:
---
A copy of the partition_info object is created before modification so
that any changes would not cause the the original partition_info object
to be modified if the ALTER TABLE fails.(Backported part of the code
provided as fix for bug#14156617 in mysql-5.6.6).
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions