Merge pull request #284 from ideawu/master

log compaction output file's level along with number
This commit is contained in:
Chris Mumford 2016-01-12 11:30:32 -08:00
commit dac40d25f6

View File

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