Kouhei Sutou 2019-03-13 12:02:18 +0900 (Wed, 13 Mar 2019) Revision: 85429cc94b5278a332817f2c3c303622e14c54a4 https://github.com/groonga/groonga/commit/85429cc94b5278a332817f2c3c303622e14c54a4 Message: ii: fix a bug that deleted records may be matched It's occurred when: 1. the target record is stored in chunk 2. the target record is deleted after it's stored in chunk (tf == 0 entry is added into buffer to indicate the target record is deleted) 3. the buffer that includes the chunk for the target record is fulled and flushed Modified files: lib/ii.c Modified: lib/ii.c (+0 -3) =================================================================== --- lib/ii.c 2019-03-12 10:20:27 +0900 (ead084c92) +++ lib/ii.c 2019-03-13 12:02:18 +0900 (9c6c5526e) @@ -4025,9 +4025,6 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h, } if (cinfo[i].size) { nvchunks++; - } else { - crid -= cinfo[i].dgap; - cinfo[i + 1].dgap += cinfo[i].dgap; } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190313/cc706bed/attachment.html>