Fix InstallCompactionResults Log wrong level

The output SSTable should be put at compact->compaction->level()+1
This commit is contained in:
zzt 2022-03-19 11:15:00 +08:00 committed by GitHub
parent 11aafab31f
commit 4836a3690b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}