def readers.valid
mylsm-lsm-store@0.6.0.1 · src/ResourceOptions.bend:237
import mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend as ResourceOptions
import Base
237def readers.valid(limits: ReaderLimits) -> Bool:
238 match limits:
239 case ReaderLimits{snapshots, cursors, cursors_per_snapshot,
240 retained_root_bytes, retired_files, index_page_bytes,
241 index_buffer_bytes, restore_bytes}:
242 cursor.limits.valid(cursors, cursors_per_snapshot) &&
243 retained.limits.valid(snapshots, retained_root_bytes, retired_files) &&
244 index.limits.valid(index_page_bytes, index_buffer_bytes) &&
245 bounded(restore_bytes, 67108864)