Skip to content

Commit

Permalink
Export grn_query_logger_reopen()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 19, 2012
1 parent d2db4e1 commit 06c2937
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/groonga.h
Expand Up @@ -2096,6 +2096,7 @@ GRN_API grn_rc grn_query_logger_info_set(grn_ctx *ctx, const grn_query_logger_in
GRN_API void grn_query_logger_put(grn_ctx *ctx, unsigned int flag,
const char *mark,
const char *format, ...) GRN_ATTRIBUTE_PRINTF(4);
GRN_API void grn_query_logger_reopen(grn_ctx *ctx);

GRN_API grn_bool grn_query_logger_pass(grn_ctx *ctx, unsigned int flag);

Expand Down
6 changes: 6 additions & 0 deletions lib/ctx.c
Expand Up @@ -824,6 +824,12 @@ grn_log_reopen(grn_ctx *ctx)
"grn_log_reopen() is not implemented with a custom grn_logger.");
}

grn_query_logger_reopen(ctx);
}

void
grn_query_logger_reopen(grn_ctx *ctx)
{
if (grn_query_logger->reopen) {
grn_query_logger->reopen(ctx, grn_query_logger->user_data);
}
Expand Down

0 comments on commit 06c2937

Please sign in to comment.