Files
mini_lsm/mini-lsm-starter/src/mvcc/watermark.rs
Alex Chi 5f1b10b03b use symlink when possible
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2024-01-28 15:17:53 +08:00

25 lines
540 B
Rust

#![allow(unused_variables)] // TODO(you): remove this lint after implementing this mod
#![allow(dead_code)] // TODO(you): remove this lint after implementing this mod
use std::collections::BTreeMap;
pub struct Watermark {
readers: BTreeMap<u64, usize>,
}
impl Watermark {
pub fn new() -> Self {
Self {
readers: BTreeMap::new(),
}
}
pub fn add_reader(&mut self, ts: u64) {}
pub fn remove_reader(&mut self, ts: u64) {}
pub fn watermark(&self) -> Option<u64> {
Some(0)
}
}