def append.decoded

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

import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal
import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal

474# Returns the handle and preserves the decoded batch result.
475def append.decoded(
476  result: Result<&1, &1, Wal.Error, ByteWal.Batch>
477) -> Result<&1, &1, Error, ByteWal.Batch>:
478  match result:
479    case Fail{_}:
480      Fail{Corruption{"encoded byte WAL frame failed self-validation"}}
481    case Done{batch}:
482      Done{batch}

Uses (4)

Used by (1)