Navigation Menu

Skip to content

Commit

Permalink
storage: fix a bug that table specified index can't be removed
Browse files Browse the repository at this point in the history
You can specify table of index by `COMMENT 'table "XXX"'`.

[groonga-dev,02677]

Reported by Naoya Murakami. Thanks!!!
  • Loading branch information
kou committed Aug 22, 2014
1 parent b899b2a commit 99a8386
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ha_mroonga.cpp
Expand Up @@ -13401,13 +13401,9 @@ bool ha_mroonga::storage_inplace_alter_table_index(
while (strcmp(key_info[j].name, key->name)) {
++j;
}
mrn::IndexTableName index_table_name(mapper.table_name(), key->name);
grn_obj *index_table = grn_ctx_get(ctx,
index_table_name.c_str(),
index_table_name.length());
if (index_table) {
grn_obj_remove(ctx, index_table);
}
error = drop_index(share, j);
if (error)
DBUG_RETURN(true);
grn_index_tables[j] = NULL;
grn_index_columns[j] = NULL;
}
Expand Down

0 comments on commit 99a8386

Please sign in to comment.