Kouhei Sutou
null+****@clear*****
Mon Feb 23 22:04:58 JST 2015
Kouhei Sutou 2015-02-23 22:04:58 +0900 (Mon, 23 Feb 2015) New Revision: dc95959c02ce6f602c3e204e43882af3a484613e https://github.com/groonga/groonga/commit/dc95959c02ce6f602c3e204e43882af3a484613e Message: dump: use grn_ctx_set_output_type() Modified files: lib/proc.c Modified: lib/proc.c (+1 -2) =================================================================== --- lib/proc.c 2015-02-23 22:04:26 +0900 (68885fb) +++ lib/proc.c 2015-02-23 22:04:58 +0900 (157acfa) @@ -3230,8 +3230,7 @@ static grn_obj * proc_dump(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) { grn_obj *outbuf = ctx->impl->outbuf; - ctx->impl->output_type = GRN_CONTENT_NONE; - ctx->impl->mime_type = "text/x-groonga-command-list"; + grn_ctx_set_output_type(ctx, GRN_CONTENT_GROONGA_COMMAND_LIST); dump_schema(ctx, outbuf); grn_ctx_output_flush(ctx, 0); /* To update index columns correctly, we first create the whole schema, then -------------- next part -------------- HTML����������������������������...Download