null+****@clear*****
null+****@clear*****
2011年 10月 28日 (金) 01:27:36 JST
Kentoku 2011-10-27 16:27:36 +0000 (Thu, 27 Oct 2011) New Revision: 7d964f3116239c20062172a575ace4d1fe03406b Log: change drop index id at drop_index Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+4 -4) =================================================================== --- ha_mroonga.cc 2011-10-27 10:38:07 +0000 (0425215) +++ ha_mroonga.cc 2011-10-27 16:27:36 +0000 (dcc764a) @@ -7513,8 +7513,8 @@ int ha_mroonga::wrapper_prepare_drop_index(TABLE *table_arg, uint *key_num, if (index_table != NULL) { grn_obj_remove(ctx, index_table); } - grn_index_tables[i] = NULL; - grn_index_columns[i] = NULL; + grn_index_tables[key_num[i]] = NULL; + grn_index_columns[key_num[i]] = NULL; } if (j) { @@ -7543,8 +7543,8 @@ int ha_mroonga::storage_prepare_drop_index(TABLE *table_arg, uint *key_num, if (index_table != NULL) { grn_obj_remove(ctx, index_table); } - grn_index_tables[i] = NULL; - grn_index_columns[i] = NULL; + grn_index_tables[key_num[i]] = NULL; + grn_index_columns[key_num[i]] = NULL; } DBUG_RETURN(0); }