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

Function stamp_delete_cells

nodedb/src/engine/array/write.rs:115–133  ·  view source on GitHub ↗
(
    store: &mut ArrayStore,
    cells: Vec<super::wal::ArrayDeleteCell>,
    lsn: u64,
)

Source from the content-addressed store, hash-verified

113}
114
115pub(crate) fn stamp_delete_cells(
116 store: &mut ArrayStore,
117 cells: Vec<super::wal::ArrayDeleteCell>,
118 lsn: u64,
119) -> ArrayEngineResult<()> {
120 let schema = store.schema().clone();
121 for c in cells {
122 if c.erasure {
123 store
124 .memtable
125 .erase_cell(&schema, c.coord, c.system_from_ms, lsn)?;
126 } else {
127 store
128 .memtable
129 .delete_cell(&schema, c.coord, c.system_from_ms, lsn)?;
130 }
131 }
132 Ok(())
133}
134
135#[cfg(test)]
136mod tests {

Callers 2

apply_recordMethod · 0.85
delete_cellsMethod · 0.85

Calls 4

erase_cellMethod · 0.80
delete_cellMethod · 0.80
cloneMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected