Skip to main content

select_whole_region_builds

Function select_whole_region_builds 

Source
fn select_whole_region_builds(
    candidates: Vec<(FileHandle, FileMetaRef)>,
    registry: &IndexRegistry,
    snapshot: &IndexBuildSnapshot,
    build_type: &IndexBuildType,
) -> Vec<(FileHandle, FileMetaRef)>
Expand description

Selects the files that a build of build_type for every file of a region builds, from the region’s files that its manifest records (candidates, each with the manifest’s file meta). A flush build, which the end of a wait for the Leader lease asks for, builds no extension index, so it leaves the files that have one. Of the others it builds those whose index in the version is not current for the plan of build_type: a publication committed to the manifest but not yet applied is still invisible to queries, and its build still holds the file, so a manual build waits for it.