ManifestIo.mfst_opened: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/legacy/ManifestIo.bend as ManifestIo Lines 227-238 of mylsm-lsm-store@0.6.0.1/src/legacy/ManifestIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/legacy/ManifestIo.bend&start_line=227&end_line=238 import Base import mylsm-lsm-store@0.6.0.1/src/Manifest.bend as Manifest import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs # Handle mfst opened in the memtable flush. def mfst_opened( path: String, result: Result<&1, &1, U32 & String, File> ) -> IO(Result<&1, &1, U32 & String, Manifest.Manifest>): match result: case Fail{(+code, _)}: mfst_open_error(U32.is_eq(code, 2), code) case Done{file}: do IO>: size : Result<&1, &1, U32 & String, Nat> <- Fs.file_size(path) manifest.read.size(file, size) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Fs.bend&name=file_size https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Manifest.bend&name=Manifest https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/legacy/ManifestIo.bend&name=manifest.read.size https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/legacy/ManifestIo.bend&name=mfst_open_error