def pin_generation

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

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

1339# Increments the reference count of one current or retired generation.
1340def pin_generation(
1341  registry: GenerationRegistry,
1342  target: Nat
1343) -> GenerationPinDecision:
1344  match registry:
1345    case GenerationRegistry{current, retired}:
1346      pin.registry.current(current, retired, target)

Uses (4)

Used by (0)

No other definition uses this definition.