[Groonga-commit] groonga/groonga [master] Fixed missing return in grn_ja_put_raw().

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 25日 (水) 17:46:03 JST


Daijiro MORI	2010-08-25 08:46:03 +0000 (Wed, 25 Aug 2010)

  New Revision: 2f2e34ac51922b1a1627288defdb88756572083d

  Log:
    Fixed missing return in grn_ja_put_raw().

  Modified files:
    lib/store.c

  Modified: lib/store.c (+2 -0)
===================================================================
--- lib/store.c    2010-08-25 07:07:23 +0000 (1e0dfb5)
+++ lib/store.c    2010-08-25 08:46:03 +0000 (73b7688)
@@ -725,6 +725,7 @@ grn_ja_put_raw(grn_ctx *ctx, grn_ja *ja, grn_id id,
               memcpy(b + pos, value, value_len);
               *((uint32_t *)(b + el)) = pos + value_len;
             }
+            return ctx->rc;
           } else {
             if ((rc = grn_ja_alloc(ctx, ja, id,
                                    value_len + old_len + sizeof(uint32_t),
@@ -774,6 +775,7 @@ grn_ja_put_raw(grn_ctx *ctx, grn_ja *ja, grn_id id,
               memcpy(b + pos - value_len, value, value_len);
               *((uint32_t *)(b + el)) = pos - value_len;
             }
+            return ctx->rc;
           } else {
             if ((rc = grn_ja_alloc(ctx, ja, id,
                                    value_len + old_len + sizeof(uint32_t),




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