MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / WAL

Class WAL

src/structures/wal.rs:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169pub 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
177impl WAL {
178 pub fn new(path: PathBuf, namespace_id: String) -> io::Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected