def snapshot.root.preflight

mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2682

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

2682def snapshot.root.preflight(
2683  handle: Handle,
2684  delta_bytes: Nat,
2685  max_bytes: Nat
2686) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2687  match handle:
2688    case Handle{path, lock, table, state, base_stats}:
2689      match table:
2690        case ByteMemTable.Table{entries}:
2691          snapshot.root.preflight.ready(path, lock, state,
2692            base_stats, ByteMemTable.entries.clone(entries),
2693            delta_bytes, max_bytes)

Uses (10)

Used by (1)