diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-11-29 15:18:17 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-11-29 15:18:17 +0200 |
| commit | 6caaac539308dd56b669c39c9665806e6ead6112 (patch) | |
| tree | 9cf5081e5eba792278fd89492bb900235393110d /log_db/src/memtable_secondary.rs | |
| parent | 10dcde18ad2c02df9d0294d75cfa5ef01f53ada3 (diff) | |
Add tombstone flag to record to support delete
Diffstat (limited to 'log_db/src/memtable_secondary.rs')
| -rw-r--r-- | log_db/src/memtable_secondary.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<LogKeySet> { + self.records.remove(key) + } } |
