aboutsummaryrefslogtreecommitdiff
path: root/src/garage/admin_rpc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-15 18:27:26 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-15 18:27:26 +0100
commit0290afe1f8eafabf71695d677807e07658d078ab (patch)
tree882c6b3601b0f9e3037e59cdae834d69a01be5f3 /src/garage/admin_rpc.rs
parent3bf2df622a070fe8f233bec6d60bd5cca995fbfc (diff)
downloadgarage-0290afe1f8eafabf71695d677807e07658d078ab.tar.gz
garage-0290afe1f8eafabf71695d677807e07658d078ab.zip
Make block rc code more understandable
Diffstat (limited to 'src/garage/admin_rpc.rs')
-rw-r--r--src/garage/admin_rpc.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs
index a75c9013..512e00dd 100644
--- a/src/garage/admin_rpc.rs
+++ b/src/garage/admin_rpc.rs
@@ -425,6 +425,12 @@ impl AdminRpcHandler {
writeln!(&mut ret, "\nBlock manager stats:").unwrap();
writeln!(
&mut ret,
+ " number of blocks: {}",
+ self.garage.block_manager.rc.len()
+ )
+ .unwrap();
+ writeln!(
+ &mut ret,
" resync queue length: {}",
self.garage.block_manager.resync_queue.len()
)
@@ -451,6 +457,18 @@ impl AdminRpcHandler {
t.data.merkle_updater.todo.len()
)
.unwrap();
+ writeln!(
+ to,
+ " Merkle tree size: {}",
+ t.data.merkle_updater.merkle_tree.len()
+ )
+ .unwrap();
+ writeln!(
+ to,
+ " GC todo queue length: {}",
+ t.data.gc_todo.len()
+ )
+ .unwrap();
Ok(())
}
}