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

Method delete_cell

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

Append a tombstone version for `(coord, system_from_ms)`. Creates a new tile-version entry in the memtable; does NOT mutate any earlier version for this coord.

(
        &mut self,
        schema: &ArraySchema,
        coord: Vec<CoordValue>,
        system_from_ms: i64,
        lsn: u64,
    )

Source from the content-addressed store, hash-verified

230 /// new tile-version entry in the memtable; does NOT mutate any earlier
231 /// version for this coord.
232 pub fn delete_cell(
233 &mut self,
234 schema: &ArraySchema,
235 coord: Vec<CoordValue>,
236 system_from_ms: i64,
237 lsn: u64,
238 ) -> ArrayResult<TileId> {
239 let tile = tile_id_for_cell(schema, &coord, system_from_ms)?;
240 self.tiles
241 .entry(tile)
242 .or_default()
243 .push_tombstone(&coord, lsn)?;
244 Ok(tile)
245 }
246
247 /// Append a GDPR erasure version for `(coord, system_from_ms)`. Writes
248 /// the `0xFE` sentinel rather than the `0xFF` tombstone. The ceiling

Calls 3

tile_id_for_cellFunction · 0.85
push_tombstoneMethod · 0.80
entryMethod · 0.80