Navigation Menu

Skip to content

Commit

Permalink
ii: fix a bug that search isn't returned long time
Browse files Browse the repository at this point in the history
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!!!
  • Loading branch information
kou committed Jun 2, 2016
1 parent 42803f2 commit 1a81814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ii.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1a81814

Please sign in to comment.