finish leveled compaction

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-18 14:50:12 +08:00
parent 81bd372524
commit 693e7f2e6a
13 changed files with 543 additions and 104 deletions

View File

@@ -136,9 +136,6 @@ impl LsmStorage {
}
/// Persist data to disk.
///
/// In day 3: flush the current memtable to disk as L0 SST.
/// In day 6: call `fsync` on WAL.
pub fn sync(&self) -> Result<()> {
let _flush_lock = self.flush_lock.lock();
@@ -226,9 +223,6 @@ impl LsmStorage {
let iter = TwoMergeIterator::create(memtable_iter, table_iter)?;
Ok(FusedIterator::new(LsmIterator::new(
iter,
map_bound(upper),
)?))
Ok(FusedIterator::new(LsmIterator::new(iter, map_bound(upper))?))
}
}