def append.unknown

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

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

484# Poisons a handle when append or sync leaves commit status uncertain.
485def append.unknown(
486  +path: String,
487  lock: DbLock.Lock,
488  table: ByteMemTable.Table,
489  error: U32 & String
490) -> Handle & Result<&1, &1, Error, Unit>:
491  match error:
492    case (code, message):
493      (Handle{path, lock, table, Poisoned{}, VisibleStats.Stats{0n, 0n}}, Fail{CommitUnknown{code, message}})

Uses (12)

Used by (1)