@@ -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))?))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user