[Groonga-commit] groonga/groonga [master] reset various error information when error occurs on remote groonga

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 22日 (木) 11:08:57 JST


Ryo Onodera	2010-07-22 02:08:57 +0000 (Thu, 22 Jul 2010)

  New Revision: 5256808ae845b67c31c19ad0395f8d8c5b01a6cb

  Log:
    reset various error information when error occurs on remote groonga

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+4 -0)
===================================================================
--- lib/ctx.c    2010-07-22 03:07:11 +0000 (184e7f4)
+++ lib/ctx.c    2010-07-22 02:08:57 +0000 (594c0cf)
@@ -1074,6 +1074,10 @@ grn_ctx_recv(grn_ctx *ctx, char **str, unsigned int *str_len, int *flags)
         }
         ctx->impl->output_type = header.qtype;
         ctx->rc = (int16_t) header.status;
+        ctx->errbuf[0] = '\0';
+        ctx->errline = 0;
+        ctx->errfile = "";
+        ctx->errfunc = "";
       }
       goto exit;
     } else {




Groonga-commit メーリングリストの案内
Back to archive index