[Groonga-commit] groonga/groonga at e71ce7b [master] Fix a bug that GRN_II_CURSOR_SET_MIN_ENABLE=yes doesn't return some matched records

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 1 13:49:57 JST 2015


Kouhei Sutou	2015-04-01 13:49:57 +0900 (Wed, 01 Apr 2015)

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

  Message:
    Fix a bug that GRN_II_CURSOR_SET_MIN_ENABLE=yes doesn't return some matched records
    
    We need to benchmark...

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+2 -1)
===================================================================
--- lib/ii.c    2015-04-01 12:57:50 +0900 (41b5e84)
+++ lib/ii.c    2015-04-01 13:49:57 +0900 (2a2e7d3)
@@ -4131,7 +4131,8 @@ grn_ii_cursor_next(grn_ctx *ctx, grn_ii_cursor *c)
             c->pc.pos = 0;
             if (c->pc.rid < c->min) {
               if (c->curr_chunk < c->nchunks) {
-                if (c->pc.rid + c->cinfo[c->curr_chunk + 1].dgap < c->min) {
+                uint32_t next_dgap = c->cinfo[c->curr_chunk + 1].dgap;
+                if (next_dgap > 0 && c->pc.rid + next_dgap < c->min) {
                   c->crp = c->cdp + c->cdf;
                 }
               }
-------------- next part --------------
HTML����������������������������...
Descargar 



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