[Groonga-commit] groonga/groonga at cb02452 [master] ii: use GRN_ID_NIL instead of 0

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Sep 25 14:39:10 JST 2017


Kouhei Sutou	2017-09-25 14:39:10 +0900 (Mon, 25 Sep 2017)

  New Revision: cb02452472f17b177a97941ec28cb74dacb7334c
  https://github.com/groonga/groonga/commit/cb02452472f17b177a97941ec28cb74dacb7334c

  Message:
    ii: use GRN_ID_NIL instead of 0

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+9 -9)
===================================================================
--- lib/ii.c    2017-09-25 09:04:07 +0900 (5c445b5e8)
+++ lib/ii.c    2017-09-25 14:39:10 +0900 (065c6a386)
@@ -5241,7 +5241,7 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                             "while decoding: %p",
                             c->cinfo[c->curr_chunk].segno,
                             c);
-                    c->pc.rid = 0;
+                    c->pc.rid = GRN_ID_NIL;
                     break;
                   }
                   if (buffer_is_reused(ctx, c->ii, c)) {
@@ -5249,7 +5249,7 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                             "[ii][cursor][next][chunk][last] "
                             "buffer is reused by another thread: %p",
                             c);
-                    c->pc.rid = 0;
+                    c->pc.rid = GRN_ID_NIL;
                     break;
                   }
                   if (chunk_is_reused(ctx, c->ii, c,
@@ -5260,11 +5260,11 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                             "chunk(%d) is reused by another thread: %p",
                             c->buf->header.chunk,
                             c);
-                    c->pc.rid = 0;
+                    c->pc.rid = GRN_ID_NIL;
                     break;
                   }
                 } else {
-                  c->pc.rid = 0;
+                  c->pc.rid = GRN_ID_NIL;
                   break;
                 }
               } else {
@@ -5285,7 +5285,7 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                             "while decoding: %p",
                             c->cinfo[c->curr_chunk].segno,
                             c);
-                    c->pc.rid = 0;
+                    c->pc.rid = GRN_ID_NIL;
                     break;
                   }
                   if (chunk_is_reused(ctx, c->ii, c,
@@ -5295,11 +5295,11 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                             "chunk(%d) is reused by another thread: %p",
                             c->cinfo[c->curr_chunk].segno,
                             c);
-                    c->pc.rid = 0;
+                    c->pc.rid = GRN_ID_NIL;
                     break;
                   }
                 } else {
-                  c->pc.rid = 0;
+                  c->pc.rid = GRN_ID_NIL;
                   break;
                 }
               }
@@ -5319,13 +5319,13 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                 }
               }
               c->prev_chunk_rid = c->pc.rid;
-              c->pc.rid = 0;
+              c->pc.rid = GRN_ID_NIL;
               c->pc.sid = 0;
               c->pc.rest = 0;
               c->curr_chunk++;
               continue;
             } else {
-              c->pc.rid = 0;
+              c->pc.rid = GRN_ID_NIL;
             }
           }
           break;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170925/761da75d/attachment-0001.htm 



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