Navigation Menu

Skip to content

Commit

Permalink
get lock in function mrn_drop_db(). refs #1281
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Feb 15, 2012
1 parent 1869e43 commit 8482de5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -916,7 +916,9 @@ static void mrn_drop_db(handlerton *hton, char *path)
GRN_LOG(ctx, GRN_LOG_ERROR, "cannot drop database (%s)", db_path);
}
}
pthread_mutex_lock(&mrn_db_mutex);
mrn_hash_remove(ctx, mrn_hash, db_name);
pthread_mutex_unlock(&mrn_db_mutex);
grn_ctx_fin(ctx);
}

Expand Down

0 comments on commit 8482de5

Please sign in to comment.