[thin_check (rust)] output complete node paths with errors.

This can be used with thin_explore
This commit is contained in:
Joe Thornber
2020-09-18 11:16:09 +01:00
parent bc058f8baf
commit b193d19603
3 changed files with 127 additions and 93 deletions

View File

@@ -265,7 +265,8 @@ fn read_node_header(engine: &dyn IoEngine, loc: u64) -> Result<btree::NodeHeader
fn read_node<V: Unpack>(engine: &dyn IoEngine, loc: u64) -> Result<btree::Node<V>> {
let b = engine.read(loc)?;
btree::unpack_node(&b.get_data(), true, false)
let path = Vec::new();
btree::unpack_node(&path, &b.get_data(), true, false)
.map_err(|_| anyhow!("couldn't unpack btree node"))
}