Expand description
Handles index build requests.
Structs§
- Index
Build 🔒Snapshot - Parts of a region version that index build tasks need.
Functions§
- index_
needs_ 🔒rebuild - needs_
background_ 🔒indexes - Returns whether a background build may replace the index of
file: a file that already has an extension index was indexed whole by its writer, and a replacement would erase those blobs. - select_
whole_ 🔒region_ builds - Selects the files that a build of
build_typefor 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 ofbuild_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. - validate_
rebuild_ 🔒plan - Rejects invalid current options before selecting files or scheduling any task.