def put.probe.absent.count
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:1970
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
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1970def put.probe.absent.count(
1971 +path: String,
1972 lock: DbLock.Lock,
1973 table: ByteMemTable.Table,
1974 state: HandleState,
1975 base_stats: VisibleStats.Stats,
1976 keys: Bytes.Bytes & Bytes.Bytes,
1977 value: Bytes.Bytes,
1978 empty: Bool
1979) -> IO(Handle & Result<&1, &1, Error, Unit>):
1980 match empty:
1981 case True{}:
1982 put.probe.present(path, lock, table, state, base_stats, keys, value)
1983 case False{}:
1984 put.probe.absent.nonempty(path, lock, table, state, base_stats,
1985 keys, value)