Navigation Menu

Skip to content

Commit

Permalink
enhance error handling for ha_groonga::close.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jul 21, 2009
1 parent 10b998a commit 0ebd600
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ha_groonga.cc
Expand Up @@ -377,7 +377,11 @@ int ha_groonga::close()
minfo->ref_count--;
if (minfo->ref_count <= 0)
{
mrn_hash_remove(ctx, minfo->table->name);
if (mrn_hash_remove(ctx, minfo->table->name) != 0)
{
GRN_LOG(ctx, GRN_LOG_ERROR, "error in mrn_hash_remove:[%p,%s]",
ctx, minfo->table->name);
}
mrn_close(ctx, minfo);
mrn_deinit_obj_info(ctx, minfo);
this->minfo = NULL;
Expand Down

0 comments on commit 0ebd600

Please sign in to comment.