First Commit
This commit is contained in:
@@ -32,7 +32,9 @@ pub struct Wal {
|
||||
|
||||
impl Wal {
|
||||
pub fn create(_path: impl AsRef<Path>) -> Result<Self> {
|
||||
unimplemented!()
|
||||
Ok(Self {
|
||||
file: Arc::new(Mutex::new(BufWriter::new(File::create(_path)?))),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn recover(_path: impl AsRef<Path>, _skiplist: &SkipMap<Bytes, Bytes>) -> Result<Self> {
|
||||
|
||||
Reference in New Issue
Block a user