def snapshot.root.generation.file
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2571
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
2571def snapshot.root.generation.file(
2572 handle: Handle,
2573 read_path: String,
2574 delta: List<&1, ByteMemTable.Entry>,
2575 delta_bytes: Nat,
2576 max_bytes: Nat,
2577 file_ids: U32 & U32
2578) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2579 match file_ids:
2580 case (path_id, generation_id):
2581 snapshot.root.file.size(handle,
2582 path.clone.pair(ByteManifest.sst.generation.path(read_path, path_id)),
2583 Some{generation_id}, delta, delta_bytes, max_bytes)