def get.sst.exhausted.cursor

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

import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDb
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import mylsm-lsm-store@0.6.0.1/src/DbLock.bend as DbLock
import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursor
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStats
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

1090def get.sst.exhausted.cursor(
1091  +path: String,
1092  lock: DbLock.Lock,
1093  table: ByteMemTable.Table,
1094  cursor: SstCursor.Cursor
1095) -> IO(Handle & Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>):
1096  do IO<Handle & Result<&1, &1, Error, Maybe<&1, Bytes.Bytes>>>:
1097    _closed : Result<&1, &1, U32 & String, Unit> <- SstCursor.close(cursor)
1098    return (Handle{path, lock, table, Open{}, VisibleStats.Stats{0n, 0n}}, Fail{ResourceLimit{}})

Uses (19)

Used by (1)