Navigation Menu

Skip to content

Commit

Permalink
Fix a bug causing index corruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jan 9, 2015
1 parent b35fcf5 commit 2749c99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ii.c
Expand Up @@ -2644,12 +2644,12 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h,
datavec_fin(ctx, rdv);
return rc;
}
if (cinfo[i].size) {
nvchunks++;
} else {
crid -= cinfo[i].dgap;
cinfo[i + 1].dgap += cinfo[i].dgap;
}
}
if (cinfo[i].size) {
nvchunks++;
} else {
crid -= cinfo[i].dgap;
cinfo[i + 1].dgap += cinfo[i].dgap;
}
}
}
Expand Down

0 comments on commit 2749c99

Please sign in to comment.