Skip to content

Commit

Permalink
remove Tree::free_sealed_memtable
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jan 18, 2024
1 parent 80fe674 commit 23393c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,6 @@ impl Tree {
*memtable_lock = memtable;
}

/// Free a sealed memtable
pub fn free_sealed_memtable(&self, id: &Arc<str>) {
let mut memtable_lock = self.sealed_memtables.write().expect("lock is poisoned");
memtable_lock.remove(id);
}

/// Adds a sealed memtables.
///
/// May be used to restore the LSM-tree's in-memory state from some journals.
Expand Down

0 comments on commit 23393c8

Please sign in to comment.