diff options
author | Aditya A <aditya.a@oracle.com> | 2013-10-18 12:26:28 +0530 |
---|---|---|
committer | Aditya A <aditya.a@oracle.com> | 2013-10-18 12:26:28 +0530 |
commit | cd6f3b55dab602069f43ed08fd3949d1226c2c50 (patch) | |
tree | 6b3fa47450e41f169ae9dd1f119290cc762be713 /sql/sql_partition.cc | |
parent | 2b07397b2021ce598f0bde23a15b1e7983722463 (diff) | |
download | mariadb-git-cd6f3b55dab602069f43ed08fd3949d1226c2c50.tar.gz |
Bug#17559867 AFTER REBUILDING,A MYISAM PARTITION ENDS UP
AS A INNODB PARTITTION.
PROBLEM
-------
The correct engine_type was not being set during
rebuild of the partition due to which the handler
was always created with the default engine,
which is innodb for 5.5+ ,therefore even if the
table was myisam, after rebuilding the partitions
ended up as innodb partitions.
FIX
---
Set the correct engine type during rebuild.
[Approved by mattiasj #rb3599]
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r-- | sql/sql_partition.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index a3ad138043c..aa367abe22a 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -4725,6 +4725,8 @@ that are reorganised. { uint no_parts_found; uint no_parts_opt= alter_info->partition_names.elements; + set_engine_all_partitions(tab_part_info, + tab_part_info->default_engine_type); no_parts_found= set_part_state(alter_info, tab_part_info, PART_CHANGED); if (no_parts_found != no_parts_opt && (!(alter_info->flags & ALTER_ALL_PARTITION))) |