Navigation Menu

Skip to content

Commit

Permalink
Fix a bug that GRN_II_CURSOR_SET_MIN_ENABLE=yes doesn't return some m…
Browse files Browse the repository at this point in the history
…atched records

We need to benchmark...
  • Loading branch information
kou committed Apr 1, 2015
1 parent 81cf028 commit e71ce7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ii.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e71ce7b

Please sign in to comment.