sync api with refsol

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-24 14:37:16 +08:00
parent 9473c89330
commit 4d676a451a
5 changed files with 18 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "mini-lsm-starter"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
publish = false

View File

@@ -158,6 +158,10 @@ impl MiniLsm {
self.inner.delete(key)
}
pub fn sync(&self) -> Result<()> {
self.inner.sync()
}
pub fn scan(
&self,
lower: Bound<&[u8]>,
@@ -222,6 +226,10 @@ impl LsmStorageInner {
Ok(storage)
}
pub fn sync(&self) -> Result<()> {
unimplemented!()
}
/// Get a key from the storage. In day 7, this can be further optimized by using a bloom filter.
pub fn get(&self, _key: &[u8]) -> Result<Option<Bytes>> {
unimplemented!()