def close.failed.source.no_file

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

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

279def close.failed.source.no_file(source: OwnerSource) -> IO(Unit):
280  match source:
281    case OwnerSource{session, snapshot_id, cursor_id, cursor_live}:
282      match cursor_live:
283        case True{}:
284          do IO<Unit>:
285            closed : Client.Session &
286              Result<&1, &1, Client.Error, Unit> <-
287                ByteClient.snapshot.cursor.close(session, cursor_id)
288            close.failed.source.no_file.cursor(closed, snapshot_id)
289        case False{}:
290          close.failed.snapshot.no_file(session, snapshot_id)

Uses (12)

Used by (3)