[Groonga-commit] groonga/groonga at ca1cb6f [master] ii: check GRN_OBJ_WITH_POSITION explicitly

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 30 14:25:09 JST 2017


Kouhei Sutou	2017-01-30 14:25:09 +0900 (Mon, 30 Jan 2017)

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

  Message:
    ii: check GRN_OBJ_WITH_POSITION explicitly

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -1)
===================================================================
--- lib/ii.c    2017-01-30 14:17:53 +0900 (ffb890d)
+++ lib/ii.c    2017-01-30 14:25:09 +0900 (b50ef11)
@@ -5194,7 +5194,9 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
                 if ((c->ii->header->flags & GRN_OBJ_WITH_WEIGHT)) {
                   c->cwp = c->rdv[j++].data;
                 }
-                c->cpp = c->rdv[j].data;
+                if ((c->ii->header->flags & GRN_OBJ_WITH_POSITION)) {
+                  c->cpp = c->rdv[j].data;
+                }
               }
               c->prev_chunk_rid = c->pc.rid;
               c->pc.rid = 0;
-------------- next part --------------
HTML����������������������������...
Download 



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