def snapshot_root_limited
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2708
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
2708
2709def snapshot_root_limited(
2710 max_bytes: Nat,
2711 handle: Handle
2712) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2713 match handle:
2714 case Handle{path, lock, table, state, base_stats}:
2715 snapshot.root.retained(path, lock, state, base_stats,
2716 ByteMemTable.retained_bytes.keep(table), max_bytes)