[Groonga-commit] groonga/groonga [master] return output_type and rc value in grn_com_header.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 12日 (月) 13:26:04 JST


Daijiro MORI	2010-07-12 04:26:04 +0000 (Mon, 12 Jul 2010)

  New Revision: 1b804a509a9410b831a953e5494364c8956ac247

  Log:
    return output_type and rc value in grn_com_header.

  Modified files:
    lib/com.c

  Modified: lib/com.c (+3 -2)
===================================================================
--- lib/com.c    2010-07-12 02:40:11 +0000 (9eabd1a)
+++ lib/com.c    2010-07-12 04:26:04 +0000 (ff5963b)
@@ -19,6 +19,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "ql.h"
 
 #ifdef WIN32
 #  include <ws2tcpip.h>
@@ -186,11 +187,11 @@ grn_msg_send(grn_ctx *ctx, grn_obj *msg, int flags)
       {
         if ((flags & GRN_CTX_MORE)) { flags |= GRN_CTX_QUIET; }
         if (ctx->stat == GRN_CTX_QUIT) { flags |= GRN_CTX_QUIT; }
-        header->qtype = 0;
+        header->qtype = (uint8_t) ctx->impl->output_type;
         header->keylen = 0;
         header->level = 0;
         header->flags = flags;
-        header->status = 0;
+        header->status = (uint16_t) ctx->rc;
         header->opaque = 0;
         header->cas = 0;
         //todo : MSG_DONTWAIT




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