[Groonga-commit] groonga/groonga at 31fdc06 [master] ii: fix a crash bug when searching with skip while loading

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jun 13 17:54:16 JST 2016


Kouhei Sutou	2016-06-13 17:54:16 +0900 (Mon, 13 Jun 2016)

  New Revision: 31fdc0647100d1639bfc0fbcf3f64cbeaf6df8c9
  https://github.com/groonga/groonga/commit/31fdc0647100d1639bfc0fbcf3f64cbeaf6df8c9

  Message:
    ii: fix a crash bug when searching with skip while loading
    
    It's occurred only when GRN_II_CURSOR_SET_MIN_ENABLE=yes (default).

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -0)
===================================================================
--- lib/ii.c    2016-06-13 17:50:53 +0900 (cfa7ecd)
+++ lib/ii.c    2016-06-13 17:54:16 +0900 (f23d027)
@@ -4413,6 +4413,7 @@ grn_ii_cursor_set_min(grn_ctx *ctx, grn_ii_cursor *c, grn_id min)
       if (skip_chunk > c->curr_chunk) {
         uint32_t old_chunk = c->curr_chunk;
         c->pc.rid = rid;
+        c->pc.rest = 0;
         c->prev_chunk_rid = rid - c->cinfo[skip_chunk - 1].dgap;
         c->curr_chunk = skip_chunk;
         c->crp = c->cdp + c->cdf;
-------------- next part --------------
HTML����������������������������...
Download 



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