def snapshot.root.preflight.ready
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2667
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/DbLock.bend as DbLock
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStats
2667def snapshot.root.preflight.ready(
2668 +path: String,
2669 lock: DbLock.Lock,
2670 state: HandleState,
2671 stats: VisibleStats.Stats,
2672 entries: List<&1, ByteMemTable.Entry> & List<&1, ByteMemTable.Entry>,
2673 delta_bytes: Nat,
2674 max_bytes: Nat
2675) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2676 match entries:
2677 case (live_entries, copied_entries):
2678 snapshot.root.preflight.estimated(
2679 Handle{path, lock, ByteMemTable.Table{live_entries}, state, stats},
2680 copied_entries, delta_bytes, max_bytes)