def reclaim.listed

mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:342

import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest

342def reclaim.listed(
343  +path: String,
344  value: ByteManifest.ManifestValue,
345  listed: Result<&1, &1, U32 & String, List<&1, String>>
346) -> IO(Unit):
347  match listed:
348    case Fail{_}: IO.pure(Unit, Unit{})
349    case Done{names}:
350      reclaim.remove(path, ByteManifest.retired(value, reclaim.names(names)))

Uses (12)

Used by (1)