Navigation Menu

Skip to content

Commit

Permalink
dump: flush buffer each table and pending columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 4, 2015
1 parent 22b0f29 commit 4e1c74e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/proc.c
Expand Up @@ -3144,6 +3144,7 @@ dump_table(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table,

if (GRN_TEXT_LEN(outbuf) > 0) {
GRN_TEXT_PUTC(ctx, outbuf, '\n');
grn_ctx_output_flush(ctx, 0);
}

GRN_TEXT_PUTS(ctx, outbuf, "table_create ");
Expand Down Expand Up @@ -3224,6 +3225,7 @@ dump_pending_columns(grn_ctx *ctx, grn_obj *outbuf, grn_obj *pending_columns)

if (GRN_TEXT_LEN(outbuf) > 0) {
GRN_TEXT_PUTC(ctx, outbuf, '\n');
grn_ctx_output_flush(ctx, 0);
}

for (i = 0; i < n_columns; i++) {
Expand Down

0 comments on commit 4e1c74e

Please sign in to comment.