CompactionJob::FinishCompactionOutputFile: sync TableProperties to FileMeta

This commit is contained in:
leipeng 2021-10-12 14:58:34 +08:00
parent f72fd58565
commit 67dccf86f7

View File

@ -1797,6 +1797,10 @@ Status CompactionJob::FinishCompactionOutputFile(
TableProperties tp;
if (s.ok()) {
tp = sub_compact->builder->GetTableProperties();
meta->num_entries = tp.num_entries;
meta->num_deletions = tp.num_deletions;
meta->raw_key_size = tp.raw_key_size;
meta->raw_value_size = tp.raw_value_size;
}
if (s.ok() && current_entries == 0 && tp.num_range_deletions == 0) {