compute read amp for tiered compaction

Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
Alex Chi Z
2024-01-17 15:49:43 +08:00
parent 70b1da4553
commit 11ff04227f
3 changed files with 15 additions and 2 deletions

View File

@@ -119,6 +119,9 @@ impl TieredCompactionController {
levels.push((output[0], output.to_vec()));
}
}
if !tier_to_remove.is_empty() {
unreachable!("some tiers not found??");
}
snapshot.levels = levels;
(snapshot, files_to_remove)
}