def owner.snapshot.close
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshotimport Base
1150# Closes a snapshot only after its final cursor releases the retained root.
1151def owner.snapshot.close(
1152 owner: OwnerRegistry,
1153 snapshot_id: U32
1154) -> OwnerSnapshotCloseDecision:
1155 match owner:
1156 case OwnerRegistry{allocator, reservations, snapshots, cursors}:
1157 owner.snapshot.close.list(allocator, reservations, cursors,
1158 snapshot.list.cursor.close(snapshots, snapshot_id))
Uses (5)
Used by (0)
No other definition uses this definition.