[Groonga-commit] groonga/groonga [master] Minor change in grn_ja_check()

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 29日 (木) 09:24:21 JST


Daijiro MORI	2010-07-29 00:24:21 +0000 (Thu, 29 Jul 2010)

  New Revision: d6aa5f2fcda657f8d7b25a37dde09d631e30824e

  Log:
    Minor change in grn_ja_check()

  Modified files:
    lib/store.c

  Modified: lib/store.c (+2 -1)
===================================================================
--- lib/store.c    2010-07-29 00:07:14 +0000 (309b5f8)
+++ lib/store.c    2010-07-29 00:24:21 +0000 (54b950d)
@@ -857,7 +857,7 @@ grn_ja_element_info(grn_ctx *ctx, grn_ja *ja, grn_id id,
         ETINY_DEC(ei, *size);
         *pos = 0;
       } else {
-        uint32_t jag, vpos, vsize;
+        uint32_t jag;
         if (EHUGE_P(ei)) {
           EHUGE_DEC(ei, jag, *size);
           *pos = 0;
@@ -1159,6 +1159,7 @@ grn_ja_check(grn_ctx *ctx, grn_ja *ja)
             GRN_OUTPUT_CSTR("id");
             GRN_OUTPUT_INT64(id);
             */
+            if (!id) { break; }
             if (id & DELETED) {
               element_size = (id & ~DELETED);
               n_del_elements++;




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