def snapshot

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

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/ByteSstFile.bend as ByteSstFile

2369# Clones the ordered visible table while preserving the owned handle.
2370def snapshot(handle: Handle) -> Handle & List<&1, ByteMemTable.Entry>:
2371  match handle:
2372    case Handle{path, lock, ByteMemTable.Table{entries}, state, base_stats}:
2373      snapshot.table(path, lock, state, base_stats,
2374        ByteSstFile.entries.clone(entries))

Uses (7)

Used by (1)