Navigation Menu

Skip to content

Commit

Permalink
Clear logger after grn_fin() to enable log in grn_fin()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 26, 2012
1 parent c753bda commit 6db53e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ha_mroonga.cpp
Expand Up @@ -1396,7 +1396,6 @@ static int mrn_deinit(void *p)
pthread_mutex_destroy(&mrn_open_tables_mutex);
my_hash_free(&mrn_allocated_thds);
pthread_mutex_destroy(&mrn_allocated_thds_mutex);
pthread_mutex_destroy(&mrn_log_mutex);
pthread_mutex_destroy(&mrn_db_mutex);
GRN_HASH_EACH(ctx, mrn_hash, id, NULL, 0, &value, {
grn_obj *db;
Expand All @@ -1406,13 +1405,14 @@ static int mrn_deinit(void *p)
grn_hash_close(ctx, mrn_hash);
grn_obj_unlink(ctx, mrn_db);

grn_ctx_fin(ctx);
grn_fin();

if (mrn_log_file_opened) {
fclose(mrn_log_file);
mrn_log_file_opened = false;
}

grn_ctx_fin(ctx);
grn_fin();
pthread_mutex_destroy(&mrn_log_mutex);

return 0;
}
Expand Down

0 comments on commit 6db53e3

Please sign in to comment.