Navigation Menu

Skip to content

Commit

Permalink
fixed create table's problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Jul 11, 2011
1 parent 6aeb783 commit 57d608f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -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 =
Expand All @@ -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));
Expand All @@ -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)
Expand Down

0 comments on commit 57d608f

Please sign in to comment.