Navigation Menu

Skip to content

Commit

Permalink
fix a bug of ha_groonga::open() when hash hit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jul 30, 2009
1 parent 7205864 commit 861e2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion driver.c
Expand Up @@ -213,7 +213,7 @@ int mrn_hash_get(grn_ctx *ctx, const char *key, void **value)
// key not found
if (id == GRN_ID_NIL)
{
GRN_LOG(ctx, GRN_LOG_WARNING, "hash get not found (key=%s)", key);
GRN_LOG(ctx, GRN_LOG_DEBUG, "hash get not found (key=%s)", key);
res = -1;
}
else
Expand Down
1 change: 1 addition & 0 deletions ha_groonga.cc
Expand Up @@ -324,6 +324,7 @@ int ha_groonga::open(const char *name, int mode, uint test_if_locked)
if (mrn_hash_get(ctx, MRN_TABLE_NAME(name), (void**) &minfo) == 0)
{
minfo->ref_count++;
this->minfo = minfo;
pthread_mutex_unlock(mrn_lock);
return 0;
}
Expand Down

0 comments on commit 861e2f5

Please sign in to comment.