def registry.reserve
mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:349
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot
import Base
349
350def registry.reserve(
351 registry: Registry,
352 requested_bytes: Nat,
353 max_snapshots: Nat,
354 max_retained_bytes: Nat
355) -> RegistryDecision:
356 match registry:
357 case Registry{snapshot_count, retained_bytes}:
358 registry.reserve.count(nat.duplicate(snapshot_count), retained_bytes,
359 requested_bytes, max_snapshots, max_retained_bytes)