Skip to main content

reconcile_series_buckets

Function reconcile_series_buckets 

Source
fn reconcile_series_buckets(
    buckets: Vec<SeriesBucket>,
    index_buckets: &BTreeMap<Timestamp, IndexBucket>,
) -> Vec<SeriesBucket>
Expand description

Expands SST buckets through existing index coverage before grouping build inputs.

buckets must be sorted by start and disjoint. index_buckets must contain disjoint intervals keyed by their starts. Expansion preserves start ordering, but may introduce overlaps, which are merged in the returned disjoint buckets. Established index coverage is borrowed so deferred builds cannot modify it.