[Groonga-commit] groonga/groonga at 89483ed [master] Don't run comment check when reading JSON content for load

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 17 15:27:57 JST 2015


Kouhei Sutou	2015-05-17 15:27:57 +0900 (Sun, 17 May 2015)

  New Revision: 89483edf559165a724c21b472ad10c1731844808
  https://github.com/groonga/groonga/commit/89483edf559165a724c21b472ad10c1731844808

  Message:
    Don't run comment check when reading JSON content for load

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+1 -1)
===================================================================
--- lib/ctx.c    2015-05-17 10:44:43 +0900 (0a36a53)
+++ lib/ctx.c    2015-05-17 15:27:57 +0900 (5dfd71f)
@@ -1551,7 +1551,6 @@ grn_ctx_send(grn_ctx *ctx, const char *str, unsigned int str_len, int flags)
       goto exit;
     } else {
       grn_obj *expr = NULL;
-      if (comment_command_p(str, str_len)) { goto output; };
       if (ctx->impl->qe_next) {
         grn_obj *val;
         expr = ctx->impl->qe_next;
@@ -1562,6 +1561,7 @@ grn_ctx_send(grn_ctx *ctx, const char *str, unsigned int str_len, int flags)
         }
         grn_expr_exec(ctx, expr, 0);
       } else {
+        if (comment_command_p(str, str_len)) { goto output; };
         ctx->impl->mime_type = "application/json";
         ctx->impl->output_type = GRN_CONTENT_JSON;
         grn_timeval_now(ctx, &ctx->impl->tv);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index