A change to the partition engine error recovery in mysql 5.6.6

Rich Prohaska <[email protected]> Thu, 2 Aug 2012 16:17:26 -0400
Newsgroups gmane.comp.db.mysql.devel
Message-ID <CAB3YYRWAPTDiB755-ZzyW3U+OtWFgrSP8TbH+BrEdnxpmaXwZQ@mail.gmail.com>
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;

-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals