aboutsummaryrefslogtreecommitdiff
path: root/src/table/data.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-13 15:54:03 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-13 15:54:03 +0100
commit041b60ed1dc48563ad297a6a30230655555c9a20 (patch)
tree3dfa2f0d429d7330bcadc57d7fbaad2317858279 /src/table/data.rs
parentf8d5409894d09903588cf3e9ae5ab64aab55d749 (diff)
downloadgarage-041b60ed1dc48563ad297a6a30230655555c9a20.tar.gz
garage-041b60ed1dc48563ad297a6a30230655555c9a20.zip
Add block.rc_size, table.size and table.merkle_tree_size metrics
Diffstat (limited to 'src/table/data.rs')
-rw-r--r--src/table/data.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/table/data.rs b/src/table/data.rs
index 3212e82b..93da2110 100644
--- a/src/table/data.rs
+++ b/src/table/data.rs
@@ -58,7 +58,13 @@ where
.expect("Unable to open DB tree");
let gc_todo = CountedTree::new(gc_todo).expect("Cannot count gc_todo_v2");
- let metrics = TableMetrics::new(F::TABLE_NAME, merkle_todo.clone(), gc_todo.clone());
+ let metrics = TableMetrics::new(
+ F::TABLE_NAME,
+ store.clone(),
+ merkle_tree.clone(),
+ merkle_todo.clone(),
+ gc_todo.clone(),
+ );
Arc::new(Self {
system,