Skip to main content

quick_check

Function quick_check 

Source
pub fn quick_check<F: FileBackend>(
    pager: &mut Pager<F>,
) -> Result<IntegrityReport>
Expand description

Compute the fast subset of the integrity walk: validate the file-header invariants and walk the catalog tree (and only the catalog tree), without descending into any per-collection primary or index.

Used by the obj crate’s open-time fast check (M11 #91) and by the obj crate’s Db::integrity_check for the catalog portion of the full walk.

§Errors

The returned IntegrityReport carries failures encountered during the catalog walk; the caller decides whether to surface them as Err(Error::Corruption { ... }) (the open-time fast path does) or to merge them into a broader report (the on- demand full walk does).