From 6caaac539308dd56b669c39c9665806e6ead6112 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 29 Nov 2024 15:18:17 +0200 Subject: Add tombstone flag to record to support delete --- log_db/src/memtable_secondary.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'log_db/src/memtable_secondary.rs') diff --git a/log_db/src/memtable_secondary.rs b/log_db/src/memtable_secondary.rs index 9086a97..4479516 100644 --- a/log_db/src/memtable_secondary.rs +++ b/log_db/src/memtable_secondary.rs @@ -37,4 +37,8 @@ impl SecondaryMemtable { None => &EMPTY_SET, } } + + pub fn remove(&mut self, key: &IndexableValue) -> Option { + self.records.remove(key) + } } -- cgit v1.3