def scan.delta.copied
mylsm-lsm-store@0.6.0.1 · src/ByteDurableDb.bend:2282
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/RangeCursor.bend as RangeCursor
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursor
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStats
2282def scan.delta.copied(
2283 +path: String,
2284 lock: DbLock.Lock,
2285 state: HandleState,
2286 base_stats: VisibleStats.Stats,
2287 entries: List<&1, ByteMemTable.Entry> & List<&1, ByteMemTable.Entry>,
2288 bounds: RangeCursor.Bounds
2289) -> IO(Handle & Result<&1, &1, Error, VisibleCursor.Cursor>):
2290 match entries:
2291 case (retained, copied):
2292 scan.bounds.cloned(
2293 Handle{path, lock, ByteMemTable.Table{retained}, state, base_stats},
2294 ByteMemTable.ordered_entries(ByteMemTable.Table{copied}),
2295 RangeCursor.bounds.clone(bounds))