aboutsummaryrefslogtreecommitdiff
path: root/src/table/gc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-21 17:18:16 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-21 17:18:16 +0200
commit10c886111e304a53be24b29194f2127d91121929 (patch)
treebd61e98beeccfe338c1ae41a8c1322493f618dd2 /src/table/gc.rs
parent14337d2a561887b94ea165727dd49263717cb478 (diff)
downloadgarage-10c886111e304a53be24b29194f2127d91121929.tar.gz
garage-10c886111e304a53be24b29194f2127d91121929.zip
Rename things, garage worker list cmd
Diffstat (limited to 'src/table/gc.rs')
-rw-r--r--src/table/gc.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/table/gc.rs b/src/table/gc.rs
index 36124c2f..d088a11c 100644
--- a/src/table/gc.rs
+++ b/src/table/gc.rs
@@ -332,7 +332,16 @@ where
R: TableReplication + 'static,
{
fn name(&self) -> String {
- format!("Table GC: {}", F::TABLE_NAME)
+ format!("{} GC", F::TABLE_NAME)
+ }
+
+ fn info(&self) -> Option<String> {
+ let l = self.gc.data.gc_todo_len().unwrap_or(0);
+ if l > 0 {
+ Some(format!("{} items in queue", l))
+ } else {
+ None
+ }
}
async fn work(