pub fn promotion_targets(
units: &[Unit],
rows: &[PartitionFreshnessRow],
verdicts: &[UnitVerdict],
rung: TimeDelta,
bytes: &(dyn Fn(TimeRange) -> i64 + Sync),
cap: i64,
) -> Vec<PromotionTarget>Expand description
Picks the units to promote: covered, closed, exactly one planned bucket at the query’s rung
(not grown). split_promotion then decides what to merge within each, under the byte cap.
Pure, like promotion_candidates.