Kouhei Sutou 2018-11-01 16:59:40 +0900 (Thu, 01 Nov 2018) Revision: 331ab1f91de17de1e073aca8d51a81c2f89c4f88 https://github.com/groonga/groonga/commit/331ab1f91de17de1e073aca8d51a81c2f89c4f88 Message: ii: improve error message Modified files: lib/ii.c Modified: lib/ii.c (+8 -6) =================================================================== --- lib/ii.c 2018-11-01 16:55:02 +0900 (7ebee14ab) +++ lib/ii.c 2018-11-01 16:59:40 +0900 (91992ad1d) @@ -5472,8 +5472,8 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c, if (decoded_size == 0) { GRN_LOG(ctx, GRN_LOG_WARNING, "[ii][cursor][next][chunk][last] " - "failed to decode the last chunk: " - "Another tread might change " + "failed to decode the last chunk. " + "Another thread might change " "the chunk while decoding: <%p>: <%d>: <%d>", c, c->curr_chunk, @@ -5518,10 +5518,12 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c, if (decoded_size == 0) { GRN_LOG(ctx, GRN_LOG_WARNING, "[ii][cursor][next][chunk] " - "chunk(%d) is changed by another thread " - "while decoding: %p", - c->cinfo[c->curr_chunk].segno, - c); + "failed to decode the next chunk. " + "Another thread might change " + "the chunk while decoding: <%p>: <%d>: <%d>", + c, + c->curr_chunk, + c->cinfo ? c->cinfo[c->curr_chunk].segno : -1); c->pc.rid = GRN_ID_NIL; break; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181101/dd0c8230/attachment-0001.html>