Kouhei Sutou
null+****@clear*****
Tue Jun 23 18:42:07 JST 2015
Kouhei Sutou 2015-06-23 18:42:07 +0900 (Tue, 23 Jun 2015) New Revision: f99a9a65ca7aecb3f85864876c36143164b9eb25 https://github.com/groonga/groonga/commit/f99a9a65ca7aecb3f85864876c36143164b9eb25 Message: Add NULL check for info->map When Groonga opens new database, it may be occurred that small segment isn't mapped and large segment is mapped. If small segment isn't mapped, info->map is NULL. Modified files: lib/io.c Modified: lib/io.c (+3 -0) =================================================================== --- lib/io.c 2015-06-23 17:43:23 +0900 (b7a0b5d) +++ lib/io.c 2015-06-23 18:42:07 +0900 (1bcfa18) @@ -1318,6 +1318,9 @@ grn_io_flush(grn_ctx *ctx, grn_io *io) if (!info) { continue; } + if (!info->map) { + continue; + } if (!grn_msync(ctx, info->map, segment_size)) { rc = ctx->rc; break; -------------- next part -------------- HTML����������������������������...Download