null+****@clear*****
null+****@clear*****
2010年 7月 29日 (木) 12:47:26 JST
Daijiro MORI 2010-07-29 03:47:26 +0000 (Thu, 29 Jul 2010) New Revision: 829c31062409c1497f9aa41873d7e60f15a04519 Log: Removed putting log in grn_ja_defrag_seg() when it works successfully. Modified files: lib/store.c Modified: lib/store.c (+3 -2) =================================================================== --- lib/store.c 2010-07-29 03:30:11 +0000 (251a584) +++ lib/store.c 2010-07-29 03:47:26 +0000 (65259db) @@ -1096,8 +1096,9 @@ grn_ja_defrag_seg(grn_ctx *ctx, grn_ja *ja, uint32_t seg) } v += sizeof(uint32_t) + element_size; } - GRN_LOG(ctx, *seginfo ? GRN_LOG_WARNING : GRN_LOG_NOTICE, - "dseges[%d] = %d after defrag", seg, (*seginfo & ~SEG_MASK)); + if (*seginfo) { + GRN_LOG(ctx, GRN_LOG_WARNING, "dseges[%d] = %d after defrag", seg, (*seginfo & ~SEG_MASK)); + } GRN_IO_SEG_UNREF(ja->io, seg); return GRN_SUCCESS; }