Commit 6f0fe12b authored by Luke Sandberg's avatar Luke Sandberg

drop tombstones during compaction when we can

parent 486f6744
mod interval_map; pub(crate) mod interval_map;
pub mod selector; pub mod selector;
#[cfg(test)] #[cfg(test)]
......
...@@ -28,6 +28,11 @@ pub enum LazyLookupValue<'l> { ...@@ -28,6 +28,11 @@ pub enum LazyLookupValue<'l> {
} }
impl LazyLookupValue<'_> { impl LazyLookupValue<'_> {
/// Returns true if this value is a deletion tombstone.
pub fn is_deleted(&self) -> bool {
matches!(self, LazyLookupValue::Eager(LookupValue::Deleted))
}
/// Returns the size of the value in the SST file. /// Returns the size of the value in the SST file.
pub fn uncompressed_size_in_sst(&self) -> usize { pub fn uncompressed_size_in_sst(&self) -> usize {
match self { match self {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment