def snapshot.root.manifest
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2614
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest
import mylsm-lsm-store@0.6.0.1/src/ByteManifestIo.bend as ByteManifestIo
2614def snapshot.root.manifest(
2615 paths: String & String,
2616 handle: Handle,
2617 delta: List<&1, ByteMemTable.Entry>,
2618 delta_bytes: Nat,
2619 max_bytes: Nat
2620) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2621 match paths:
2622 case (manifest_path, read_path):
2623 do IO<Handle & Result<&1, &1, Error, SnapshotRoot>>:
2624 manifest : Result<&1, &1, ByteManifestIo.Error,
2625 ByteManifest.ManifestValue> <-
2626 ByteManifestIo.read(manifest_path ++ "/MANIFEST")
2627 snapshot.root.manifest.result(read_path, handle, delta, delta_bytes,
2628 max_bytes, manifest)