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

Method push_tombstone

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

Insert a tombstone sentinel for `coord` in this version.

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

Source from the content-addressed store, hash-verified

87
88 /// Insert a tombstone sentinel for `coord` in this version.
89 pub fn push_tombstone(&mut self, coord: &Vec<CoordValue>, lsn: u64) -> ArrayResult<()> {
90 let key = Self::encode_coord(coord)?;
91 self.entries.insert(key, CELL_TOMBSTONE_SENTINEL.to_vec());
92 self.last_lsn = self.last_lsn.max(lsn);
93 Ok(())
94 }
95
96 /// Insert a GDPR erasure sentinel for `coord` in this version.
97 ///

Callers 1

delete_cellMethod · 0.80

Calls 2

insertMethod · 0.45
to_vecMethod · 0.45

Tested by

no test coverage detected