def open.reclaim.opened
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:358
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
358
359def open.reclaim.opened(
360 +path: String,
361 value: ByteManifest.ManifestValue,
362 opened: Result<&1, &1, Error, Handle>
363) -> IO(Result<&1, &1, Error, Handle>):
364 match opened:
365 case Fail{error}: IO.pure(Result<&1, &1, Error, Handle>, Fail{error})
366 case Done{handle}:
367 do IO<Result<&1, &1, Error, Handle>>:
368 _reclaimed : Unit <- reclaim(path, value)
369 return Done{handle}