summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorAditya A <aditya.a@oracle.com>2013-10-18 12:26:28 +0530
committerAditya A <aditya.a@oracle.com>2013-10-18 12:26:28 +0530
commitdf5018f2b1a0c8a8706f3c1f84ad4791c6048de4 (patch)
tree6b3fa47450e41f169ae9dd1f119290cc762be713 /sql/sql_partition.cc
parent29e45f155f7b8fc42bf0957255c10aeba2fdda57 (diff)
downloadmariadb-git-df5018f2b1a0c8a8706f3c1f84ad4791c6048de4.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.cc2
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)))