def snapshot.root.retained

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

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

2695def snapshot.root.retained(
2696  +path: String,
2697  lock: DbLock.Lock,
2698  state: HandleState,
2699  base_stats: VisibleStats.Stats,
2700  retained: ByteMemTable.Table & Nat,
2701  max_bytes: Nat
2702) -> IO(Handle & Result<&1, &1, Error, SnapshotRoot>):
2703  match retained:
2704    case (table, delta_bytes):
2705      snapshot.root.preflight(Handle{path, lock, table, state, base_stats},
2706        delta_bytes, max_bytes)

Uses (14)

Used by (1)