Skip to main content

committed_catalog_ops

Function committed_catalog_ops 

Source
pub fn committed_catalog_ops(
    held: &[IndexDef],
    indexes: &[CommittedIndexFact<'_>],
    graph_type: &GraphTypeSpec,
) -> Result<Vec<RedoOp>>
Expand description

The committed schema’s catalog redo group (ADR-0649 §6) — the DDL home’s own construction, so the catalog policy (the op order, the detail shape, the option resolution, the held-row retirement) has one compiler-linked home with CREATE INDEX: a new index kind, WITH-property rule, or op order added to DDL reaches the store’s open path through this function, never through a parallel assembly. Each committed index first retires every catalog row held under its name or its indexed pair (the committed file is the source and wins, ADR-0649 decision 2 — a file edit that retargets or renames an index overrides the machine’s stale row the way any later commit would, instead of failing the open on the catalog’s duplicate rules), then records the row and its typed detail in the DDL path’s own order; the group ends at the current graph type.