Fix ldb file wrong level info in log

This commit is contained in:
wangyuan21 2020-06-30 18:17:30 +08:00
parent 5bd5f0f67a
commit f7bd72e688

View File

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