add wal and manifest

Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
Alex Chi Z
2024-01-19 11:21:38 +08:00
parent 643734f032
commit 49c22152ae
17 changed files with 236 additions and 71 deletions

19
mini-lsm/src/wal.rs Normal file
View File

@@ -0,0 +1,19 @@
use std::path::Path;
use anyhow::Result;
pub struct Wal {}
impl Wal {
pub fn create(path: impl AsRef<Path>) -> Result<Self> {
unimplemented!()
}
pub fn put(&self, key: &[u8], value: &[u8]) -> Result<()> {
Ok(())
}
pub fn sync(&self) -> Result<()> {
Ok(())
}
}