[Groonga-commit] groonga/groonga at 1e9398e [master] Don't use skip_chunk for multiple means

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 4 10:55:17 JST 2016


Kouhei Sutou	2016-04-04 10:55:17 +0900 (Mon, 04 Apr 2016)

  New Revision: 1e9398e55b67bfd59d46cf2b9fb16b0ee8b6d046
  https://github.com/groonga/groonga/commit/1e9398e55b67bfd59d46cf2b9fb16b0ee8b6d046

  Message:
    Don't use skip_chunk for multiple means

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -3)
===================================================================
--- lib/ii.c    2016-04-04 10:53:37 +0900 (95b9d58)
+++ lib/ii.c    2016-04-04 10:55:17 +0900 (be14397)
@@ -4371,10 +4371,10 @@ grn_ii_cursor_set_min(grn_ctx *ctx, grn_ii_cursor *c, grn_id min)
   if (grn_ii_cursor_set_min_enable) {
     c->min = min;
     if (c->buf && c->pc.rid < c->min && c->prev_chunk_rid < c-> min && c->curr_chunk < c->nchunks) {
-      uint32_t i, skip_chunk = c->curr_chunk - 1;
+      uint32_t i, skip_chunk = 0;
       grn_id rid;
-      
-      for (i = skip_chunk, rid = c->prev_chunk_rid; i < c->nchunks; i++) {
+
+      for (i = c->curr_chunk - 1, rid = c->prev_chunk_rid; i < c->nchunks; i++) {
         rid += c->cinfo[i].dgap;
         if (rid < c->min) {
           skip_chunk = i + 1;
-------------- next part --------------
HTML����������������������������...
下载 



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