fix: correct the level of compaction output file

This commit is contained in:
Jaehoon Shim 2024-07-01 16:05:25 +09:00
parent 068d5ee1a3
commit 0fe0859a2c

View File

@ -863,7 +863,7 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
delete iter;
if (s.ok()) {
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_bytes);
}