pub(super) fn calc_new_write_limits(
target_groups: HashMap<CompactionGroupId, CompactionGroup>,
origin_snapshot: HashMap<CompactionGroupId, WriteLimit>,
version: &HummockVersion,
) -> HashMap<CompactionGroupId, WriteLimit>
Expand description
Calculates write limits for target_groups
.
Returns a new complete write limits snapshot based on origin_snapshot
and version
.