compute read amp for tiered compaction
Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ impl SimpleLeveledCompactionController {
|
||||
}
|
||||
|
||||
pub fn generate_compaction_task(
|
||||
&mut self,
|
||||
&self,
|
||||
snapshot: &LsmStorageInner,
|
||||
) -> Option<SimpleLeveledCompactionTask> {
|
||||
let mut level_sizes = Vec::new();
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user