| 167 | } |
| 168 | |
| 169 | pub struct WAL { |
| 170 | pub commit_list: Tree<u64, CommitListItem>, |
| 171 | pub timestamps: Tree<u64, Vec<u64>>, // maps a timestamp to a hash |
| 172 | pub commit_finish: Tree<u64, bool>, |
| 173 | pub path: PathBuf, |
| 174 | pub namespace_id: String, |
| 175 | } |
| 176 | |
| 177 | impl WAL { |
| 178 | pub fn new(path: PathBuf, namespace_id: String) -> io::Result<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected