def Bytes.backup.snapshot

mylsm-lsm-store@0.6.0.1 · mylsm.bend:1061

import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as BackupCodec

1061def Bytes.backup.snapshot(
1062  pair: Bytes.Handle & Result<&1, &1, Bytes.Error, Bytes.Snapshot>
1063) -> Bytes.Handle & Result<&1, &1, Bytes.Error, Bytes.BackupStream>:
1064  match pair:
1065    case (handle, Fail{error}): (handle, Fail{error})
1066    case (handle, Done{ByteSnapshot{entries}}):
1067      Bytes.backup.started(handle, BackupCodec.start(entries))
1068    case (handle, Done{RemoteByteSnapshot{_, _}}):
1069      (handle, Fail{UnsupportedOperation{}})

Uses (9)

Used by (1)