null+****@clear*****
null+****@clear*****
2011年 7月 11日 (月) 13:17:08 JST
Kentoku 2011-07-11 04:17:08 +0000 (Mon, 11 Jul 2011) New Revision: 57d608f60110c960aa7b8a396c6b189a1249934b Log: fixed create table's problem Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+3 -0) =================================================================== --- ha_mroonga.cc 2011-07-11 02:59:31 +0000 (5b315de) +++ ha_mroonga.cc 2011-07-11 04:17:08 +0000 (7645c0d) @@ -1094,6 +1094,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table, DBUG_RETURN(error); base_key_info = table->key_info; + share = tmp_share; MRN_SET_WRAP_SHARE_KEY(tmp_share, table->s); MRN_SET_WRAP_TABLE_KEY(this, table); if (!(hnd = @@ -1102,6 +1103,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table, { MRN_SET_BASE_SHARE_KEY(tmp_share, table->s); MRN_SET_BASE_TABLE_KEY(this, table); + share = NULL; if (wrap_key_info) { my_free(wrap_key_info, MYF(0)); @@ -1113,6 +1115,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table, error = hnd->ha_create(name, table, info); MRN_SET_BASE_SHARE_KEY(tmp_share, table->s); MRN_SET_BASE_TABLE_KEY(this, table); + share = NULL; delete hnd; if (wrap_key_info)