diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-15 18:27:26 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-15 18:27:26 +0100 |
commit | 0290afe1f8eafabf71695d677807e07658d078ab (patch) | |
tree | 882c6b3601b0f9e3037e59cdae834d69a01be5f3 /src/garage | |
parent | 3bf2df622a070fe8f233bec6d60bd5cca995fbfc (diff) | |
download | garage-0290afe1f8eafabf71695d677807e07658d078ab.tar.gz garage-0290afe1f8eafabf71695d677807e07658d078ab.zip |
Make block rc code more understandable
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/admin_rpc.rs | 18 |
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(()) } } |