Skip to main content

read_root_tree

Function read_root_tree 

Source
pub fn read_root_tree<R: Read + Seek>(
    reader: &mut BlockReader<R>,
    root_logical: u64,
) -> Result<BTreeMap<u64, (u64, u64)>>
Expand description

Read the root tree to collect all tree root pointers.

Returns a map of tree_id (objectid) -> (root_bytenr, key_offset).

ยงErrors

Returns an error if any tree block read fails.