Navigation Menu

Skip to content

Commit

Permalink
set NULL to removed indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 27, 2011
1 parent a12d29f commit 2bac31c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -7525,6 +7525,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;
}
if (j)
{
Expand Down Expand Up @@ -7553,6 +7555,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;
}
DBUG_RETURN(0);
}
Expand Down

0 comments on commit 2bac31c

Please sign in to comment.