def pin.registry.decision

mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:1313

import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot
import Base

1313def pin.registry.decision(
1314  +id: Nat,
1315  +size: Nat,
1316  +references: Nat,
1317  +retired: List<&2, FileGeneration>,
1318  +target: Nat,
1319  matches: Bool
1320) -> GenerationPinDecision:
1321  match matches:
1322    case True{}:
1323      Pinned{GenerationRegistry{FileGeneration{id, size,
1324        Nat.add(references, 1n)}, retired}}
1325    case False{}:
1326      pin.registry.retired(id, size, references,
1327        pin.retired(retired, target))

Uses (9)

Used by (1)