risingwave_meta::hummock::manager::commit_epoch

Function rewrite_commit_sstables_to_sub_level

source
fn rewrite_commit_sstables_to_sub_level(
    commit_sstables: BTreeMap<CompactionGroupId, Vec<SstableInfo>>,
    group_id_to_config: &HashMap<CompactionGroupId, Arc<CompactionConfig>>,
) -> BTreeMap<CompactionGroupId, Vec<Vec<SstableInfo>>>
Expand description

Rewrite the commit sstables to sub-levels based on the compaction group config. The type of compaction_group_manager_txn is too complex to be used in the function signature. So we use HashMap instead.