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

Method push_erasure

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

Insert a GDPR erasure sentinel for `coord` in this version. Distinct from tombstone: byte value `0xFE` vs `0xFF`. The ceiling resolver and compaction path treat them differently — erasure markers are physically removed by compaction once outside the audit-retention horizon, whereas tombstones may be retained.

(&mut self, coord: &Vec<CoordValue>, lsn: u64)

Source from the content-addressed store, hash-verified

100 /// are physically removed by compaction once outside the audit-retention
101 /// horizon, whereas tombstones may be retained.
102 pub fn push_erasure(&mut self, coord: &Vec<CoordValue>, lsn: u64) -> ArrayResult<()> {
103 let key = Self::encode_coord(coord)?;
104 self.entries
105 .insert(key, CELL_GDPR_ERASURE_SENTINEL.to_vec());
106 self.last_lsn = self.last_lsn.max(lsn);
107 Ok(())
108 }
109
110 /// Count of entries (including tombstones).
111 pub fn entry_count(&self) -> usize {

Callers 1

erase_cellMethod · 0.80

Calls 2

insertMethod · 0.45
to_vecMethod · 0.45

Tested by

no test coverage detected