def clone
import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStatsimport Base
70# Rebuilds independent copies of the exact aggregate totals.
71def clone(+stats: Stats) -> Stats & Stats:
72 match stats:
73 case Stats{+entries, +payload_bytes}:
74 clone.fields(clone.nat(entries), clone.nat(payload_bytes))
Uses (4)
Used by (5)
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:batch.prepare
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:delete.probe.absent
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:put.probe.absent
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:snapshot.limited.retained
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:stats.aggregate