def reclaim
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDbimport Base
import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
352# Removes SST files the manifest no longer references, best effort, while holding the lock.
353def reclaim(+path: String, value: ByteManifest.ManifestValue) -> IO(Unit):
354 do IO<Unit>:
355 listed : Result<&1, &1, U32 & String, List<&1, String>> <- Fs.read_dir(path)
356 reclaim.listed(path, value, listed)