select_partition

Function select_partition 

Source
pub fn select_partition(
    group: &'static str,
    shards: &[ShardRecord],
) -> Result<Partition, GroupFault>
Expand description

2026-09-26: The newest complete partition among shards, or why there is none.

Records are grouped by (count, commit), keeping the newest record per index, so a re-run shard replaces its earlier record instead of being counted twice. A group is complete when it holds count distinct indices. Among complete groups the one whose newest record is newest wins; a tie goes to the larger count. Records at two commits are never combined.

ยงErrors

GroupFault::Missing when shards is empty or no group is complete; held then lists, per (count, commit), the indices present.