/// Iterate over the extent_tree and check that they are in ascending order
/// of start offset and they do not overlap.
Iterate over the extent_tree and check that they are in ascending order
of start offset and they do not overlap.
Iterate over the extent_tree and check that they are in ascending order of start offset and they do not overlap .
fn check_extent_tree(&self) {
        let mut prev_or: Option<Extent> = None;
        for (_, extent) in &self.extent_tree {
            if prev_or.is_some() {
                let prev = prev_or.unwrap();
                assert!(extent.start() >= prev.end());
            }
            assert!(extent.storage_range().is_valid());
            prev_or = Some(extent.clone());
        }
    }
fn check_extent_tree ( & self ) { let mut prev_or : Option < Extent > = None ; for ( _ , extent ) in & self . extent_tree { if prev_or . is_some ( ) { let prev = prev_or . unwrap ( ) ; assert ! ( extent start ( ) prev end ( ) ) ; } assert ! ( extent storage_range ( ) is_valid ( ) ) ; prev_or = Some ( extent . clone ( ) ) ; } }
Iterate over the extent_tree and check that they are in ascending order
of start offset and they do not overlap.
Iterate over the extent_tree and check that they are in ascending order of start offset and they do not overlap .
&self