[Groonga-commit] groonga/groonga at 1a81814 [master] ii: fix a bug that search isn't returned long time

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jun 2 18:22:06 JST 2016


Kouhei Sutou	2016-06-02 18:22:06 +0900 (Thu, 02 Jun 2016)

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

  Message:
    ii: fix a bug that search isn't returned long time
    
    GitHub: #548
    
    [groonga-dev,04028]
    
    We should not use "jump" value for deleted record.
    
    It may fix the reported problem with this change.
    
    Reported by Atsushi Shinoda. Thanks!!!

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2016-06-02 15:08:28 +0900 (9c691c7)
+++ lib/ii.c    2016-06-02 18:22:06 +0900 (6e69e21)
@@ -4553,7 +4553,7 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
             }
             if (c->pb.rid < c->min) {
               c->pb.rid = 0;
-              if (br->jump > 0) {
+              if (br->jump > 0 && !BUFFER_REC_DELETED(br)) {
                 buffer_rec *jump_br = BUFFER_REC_AT(c->buf, br->jump);
                 uint8_t *jump_bp;
                 uint32_t jump_rid;
-------------- next part --------------
HTML����������������������������...
Descargar 



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