aboutsummaryrefslogtreecommitdiff
path: root/src/table/merkle.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-13 15:43:22 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-13 15:43:22 +0100
commitd6040e32a610a792d1e5365a7643eb99fbb5a217 (patch)
treeb5196885ae750852ad848edda714d48f4819e4b6 /src/table/merkle.rs
parentd7f90cabb0517a50a6c3dd702852770240566bfc (diff)
downloadgarage-d6040e32a610a792d1e5365a7643eb99fbb5a217.tar.gz
garage-d6040e32a610a792d1e5365a7643eb99fbb5a217.zip
cli: prettier table in garage stats
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r--src/table/merkle.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs
index 6f8a19b6..e977bfb5 100644
--- a/src/table/merkle.rs
+++ b/src/table/merkle.rs
@@ -293,6 +293,10 @@ where
Ok(self.data.merkle_tree.len()?)
}
+ pub fn merkle_tree_fast_len(&self) -> Result<Option<usize>, Error> {
+ Ok(self.data.merkle_tree.fast_len()?)
+ }
+
pub fn todo_len(&self) -> Result<usize, Error> {
Ok(self.data.merkle_todo.len()?)
}