def open_failed

mylsm-lsm-store@0.6.0.1 · src/DbLock.bend:52

import mylsm-lsm-store@0.6.0.1/src/DbLock.bend as DbLock
import Base
import mylsm-lsm-store@0.6.0.1/src/DurableError.bend as DurableError
import mylsm-lsm-store@0.6.0.1/src/DbLockPolicy.bend as Policy

52# Classifies a failure to open the LOCK file.
53def open_failed(error: U32 & String, operation: String, path: String) -> IO(Result<&1, &1, DurableError.Error, Lock>):
54  match error:
55    case (code, message):
56      IO.pure(Result<&1, &1, DurableError.Error, Lock>,
57        Fail{Policy.classify_lock_error(code, message, operation, path)})

Uses (10)

Used by (2)