mirror of
https://github.com/google/leveldb.git
synced 2025-06-07 18:02:42 +08:00
fix: correct the level of compaction output file
This commit is contained in:
parent
068d5ee1a3
commit
0fe0859a2c
@ -863,7 +863,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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user