Skip to main content

retire_pulled

Function retire_pulled 

Source
pub fn retire_pulled(
    replica: &Replica,
    record: &VaultRecord,
    root: &Path,
) -> Result<Retired, CloudError>
Expand description

Remove the facts 1.x pulls copied from record’s vault into the knowledge of the checkout at root (the replica serves them now) and rewrite the local relations that pointed at them to the replica node of the same claim: the keyed exact dedupe key of its node type and normalised statement (§3.1.5), never a recomputed fact_id. A relation whose claim has no live replica node is dropped and counted.