def owner.snapshot.close.list
mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:1130
import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot
import Base
1130def owner.snapshot.close.list(
1131 allocator: ResourceIdAllocator,
1132 reservations: Registry,
1133 cursors: List<&2, CursorResource>,
1134 decision: SnapshotListCursorDecision
1135) -> OwnerSnapshotCloseDecision:
1136 match decision:
1137 case SnapshotListClosed{prefix, resource, tail}:
1138 owner.snapshot.close.resource(snapshot.resource.duplicate(resource),
1139 allocator, cursors, prefix, tail, reservations)
1140 case SnapshotListBusy{snapshots}:
1141 OwnerSnapshotBusy{OwnerRegistry{allocator, reservations, snapshots,
1142 cursors}}
1143 case SnapshotListRejected{snapshots}:
1144 OwnerSnapshotCloseRejected{OwnerRegistry{allocator, reservations,
1145 snapshots, cursors}}
1146 case SnapshotListUpdated{snapshots}:
1147 OwnerSnapshotCloseRejected{OwnerRegistry{allocator, reservations,
1148 snapshots, cursors}}