Navigation Menu

Skip to content

Commit

Permalink
Ensure to clean a removed table
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 24, 2012
1 parent 913ebf9 commit 023b9a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -9994,6 +9994,9 @@ int ha_mroonga::wrapper_recreate_indexes(THD *thd)
bitmap_clear_all(table->read_set);
clear_indexes();
remove_grn_obj_force(table_name);
if (grn_table) {
grn_table = NULL;
}
mrn_set_bitmap_by_key(table->read_set, p_key_info);
for (i = 0; i < n_keys; i++) {
if (!(key_info[i].flags & HA_FULLTEXT) && !mrn_is_geo_key(&key_info[i])) {
Expand Down

0 comments on commit 023b9a0

Please sign in to comment.