[Groonga-commit] groonga/groonga at 1e2648d [master] ii: fix a crash bug on warning log

アーカイブの一覧に戻る
Kouhei Sutou null+****@clear*****
Thu Nov 1 16:55:02 JST 2018


Kouhei Sutou	2018-11-01 16:55:02 +0900 (Thu, 01 Nov 2018)

  Revision: 1e2648dd4d5d518376d22fbf0d9f534324c90c01
  https://github.com/groonga/groonga/commit/1e2648dd4d5d518376d22fbf0d9f534324c90c01

  Message:
    ii: fix a crash bug on warning log
    
    c->cinfo may be NULL when the chunk isn't split.

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+6 -4)
===================================================================
--- lib/ii.c    2018-11-01 16:31:32 +0900 (025389cc7)
+++ lib/ii.c    2018-11-01 16:55:02 +0900 (7ebee14ab)
@@ -5472,10 +5472,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][last] "
-                            "chunk(%d) is changed by another thread "
-                            "while decoding: %p",
-                            c->cinfo[c->curr_chunk].segno,
-                            c);
+                            "failed to decode the last chunk: "
+                            "Another tread 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/2c7e60c6/attachment.html>


More information about the Groonga-commit mailing list
アーカイブの一覧に戻る