def snapshot.root.value.length.decision

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

import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/SnapshotValueLengthPolicy.bend as SnapshotValueLengthPolicy

2995def snapshot.root.value.length.decision(
2996  decision: SnapshotValueLengthPolicy.Decision
2997) -> Result<&1, &1, Error, Maybe<&1, U32>>:
2998  match decision:
2999    case SnapshotValueLengthPolicy.NeedSst{}: Fail{ResourceLimit{}}
3000    case SnapshotValueLengthPolicy.Missing{}: Done{None{}}
3001    case SnapshotValueLengthPolicy.Found{value_bytes}:
3002      Done{Some{value_bytes}}

Uses (5)

Used by (1)