MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / live_cell_count

Method live_cell_count

nodedb/src/engine/array/memtable/tile_buffer.rs:117–122  ·  view source on GitHub ↗

Count of live (non-sentinel) entries — both tombstones and GDPR erasures are excluded.

(&self)

Source from the content-addressed store, hash-verified

115 /// Count of live (non-sentinel) entries — both tombstones and GDPR erasures
116 /// are excluded.
117 pub fn live_cell_count(&self) -> usize {
118 self.entries
119 .values()
120 .filter(|v| !is_cell_sentinel(v))
121 .count()
122 }
123
124 pub fn last_lsn(&self) -> u64 {
125 self.last_lsn

Callers 1

statsMethod · 0.80

Calls 2

is_cell_sentinelFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected