pub fn collect_primary_ids<F: FileBackend>(
pager: &mut Pager<F>,
descriptor: &CollectionDescriptor,
primary_ids: &mut HashSet<u64>,
) -> Result<u64>Expand description
Walk every entry in the primary B-tree of descriptor,
inserting each id into primary_ids and recording any
per-page failures (CRC, sort, depth) along the way. Returns the
number of leaf entries scanned.
ยงErrors
Returns Error::Io on cache-miss read failure. Content-level
breakage is recorded into failures (via walk_btree if the
caller paired the two walks) or surfaced as an early return
from this function on a B-tree decode failure.