dbTalk Databases Forums  

A change to the partition engine error recovery in mysql 5.6.6

mailing.database.mysql-internals mailing.database.mysql-internals


Discuss A change to the partition engine error recovery in mysql 5.6.6 in the mailing.database.mysql-internals forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rich Prohaska
 
Posts: n/a

Default A change to the partition engine error recovery in mysql 5.6.6 - 08-02-2012 , 03:17 PM






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:ROP_UNIQUE_INDEX;
if (ha_alter_info->handler_flags & Alter_inplace_info::ADD_PK_INDEX)
drop_info.handler_flags|= Alter_inplace_info:ROP_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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.