def close.failed.snapshot

mylsm-lsm-store@0.6.0.1 · src/transfer/BackupOwnerCursorIo.bend:146

import mylsm-lsm-store@0.6.0.1/src/transfer/BackupOwnerCursorIo.bend as BackupOwnerCursorIo
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client
import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorIo.bend as BackupCursorIo
import mylsm-lsm-store@0.6.0.1/src/transfer/BackupIo.bend as BackupIo
import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup

146def close.failed.snapshot(
147  file: File,
148  +temporary: String,
149  session: Client.Session,
150  snapshot_id: U32,
151  error: Backup.Error
152) -> IO(Result<&1, &1, BackupIo.Error, Unit>):
153  do IO<Result<&1, &1, BackupIo.Error, Unit>>:
154    _closed : Client.Session & Result<&1, &1, Client.Error, Unit> <-
155      ByteClient.snapshot.close(session, snapshot_id)
156    BackupCursorIo.close.error(file, temporary, None{}, error)

Uses (15)

Used by (2)