From: Rich Prohaska Date: August 2 2012 8:17pm Subject: A change to the partition engine error recovery in mysql 5.6.6 List-Archive: http://lists.mysql.com/internals/38560 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Hello, I made the following change to the 5.6.6-labs-june-2012 codebase to get the partition engine error recovery to work with TokuDB. The code is trying to drop a successfully added key. It would be nice to supply the key info for the table with the new key in it, which is what the change does. Thanks Rich Prohaska --- sql/ha_partition.cc (revision 46437) +++ sql/ha_partition.cc (working copy) @@ -7328,6 +7328,8 @@ drop_info.handler_flags|= Alter_inplace_info::DROP_UNIQUE_INDEX; if (ha_alter_info->handler_flags & Alter_inplace_info::ADD_PK_INDEX) drop_info.handler_flags|= Alter_inplace_info::DROP_PK_INDEX; + drop_info.key_info_buffer= ha_alter_info->key_info_buffer; + drop_info.key_count= ha_alter_info->key_count; drop_info.index_drop_count= ha_alter_info->index_add_count;