~/bend-docscommunity

src/DbLockPolicy.bend checks

raw source on the hub · import mylsm-lsm-store@0.5.0.0/src/DbLockPolicy.bend as DbLockPolicy

2 imports
import Base
import ./DurableError.bend as DurableError

Definitions

def busy_code source · line 5 · raw

@+code:U32 -> Bool

Recognizes the host errno values for lock contention.

def missing_code source · line 9 · raw

@+code:U32 -> Bool

Recognizes the host errno for a missing path.

def classify_nonbusy_lock_error source · line 13 · raw

@missing:Bool -> @code:U32 -> @message:String -> @operation:String -> @path:String -> 0x4fcd94fa965aa1443134557fd075a483/src/DurableError.Error

Maps non-contention lock errors to NotFound or Io.

def classify_lock_busy source · line 27 · raw

@busy:Bool -> @+code:U32 -> @message:String -> @operation:String -> @path:String -> 0x4fcd94fa965aa1443134557fd075a483/src/DurableError.Error

Maps contention to Busy and retains host details.

def classify_lock_error source · line 35 · raw

@+code:U32 -> @message:String -> @operation:String -> @path:String -> 0x4fcd94fa965aa1443134557fd075a483/src/DurableError.Error

Maps lock errors using the pure platform policy.