Navigation Menu

Skip to content

Commit

Permalink
refactoring for mrn_hash_remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jun 26, 2009
1 parent b81a395 commit d8a4c77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/driver.c
Expand Up @@ -216,11 +216,10 @@ int mrn_hash_remove(grn_ctx *ctx, const char *key)
{
int res = 0;
grn_rc rc;
void *value;
grn_id id;
grn_search_flags flags = 0;
pthread_mutex_lock(mrn_lock);
id = grn_hash_lookup(ctx, mrn_hash, (const char*) key, strlen(key), &value, &flags);
id = grn_hash_lookup(ctx, mrn_hash, (const char*) key, strlen(key), NULL, &flags);
if (id == GRN_ID_NIL)
{
GRN_LOG(ctx, GRN_LOG_WARNING, "hash remove not found (key=%s)", key);
Expand Down

0 comments on commit d8a4c77

Please sign in to comment.