Kouhei Sutou
null+****@clear*****
Thu Aug 15 16:44:42 JST 2013
Kouhei Sutou 2013-08-15 16:44:42 +0900 (Thu, 15 Aug 2013) New Revision: bc8da57acd1cf05393fbc18d29a7302b5b7e4221 https://github.com/groonga/groonga/commit/bc8da57acd1cf05393fbc18d29a7302b5b7e4221 Message: Show term in log message The log message is for discarding postings of the term. [groonga-dev,01621] Reported by Naoya Murakami. Thanks!!! Modified files: lib/ii.c Modified: lib/ii.c (+9 -1) =================================================================== --- lib/ii.c 2013-08-12 19:09:09 +0900 (638f3f9) +++ lib/ii.c 2013-08-15 16:44:42 +0900 (42a4e7b) @@ -3813,7 +3813,15 @@ exit : array_unref(ii, tid); if (bs) { GRN_FREE(bs); } if (u->tf != u->atf) { - GRN_LOG(ctx, GRN_LOG_WARNING, "too many postings(%d) on %u. discarded %d.", u->atf, tid, u->atf - u->tf); + char term[GRN_TABLE_MAX_KEY_SIZE]; + int term_size; + term_size = grn_table_get_key(ctx, ii->lexicon, tid, + term, GRN_TABLE_MAX_KEY_SIZE); + GRN_LOG(ctx, GRN_LOG_WARNING, + "too many postings(%d). %d postings are discarded. " + "term: <%d>(<%.*s>)", + u->atf, u->atf - u->tf, + tid, term_size, term); } grn_ii_expire(ctx, ii); return rc; -------------- next part -------------- HTML����������������������������... ダウンロード