log compaction output file's level along with number

This commit is contained in:
ideawu 2015-04-20 12:39:14 +08:00
parent 77948e7eec
commit 8fcceb2a6f

View File

@ -821,8 +821,9 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
delete iter;
if (s.ok()) {
Log(options_.info_log,
"Generated table #%llu: %lld keys, %lld bytes",
"Generated table #%llu@%d: %lld keys, %lld bytes",
(unsigned long long) output_number,
compact->compaction->level(),
(unsigned long long) current_entries,
(unsigned long long) current_bytes);
}