aboutsummaryrefslogtreecommitdiff
path: root/src/table/data.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-15 19:51:16 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-15 19:51:16 +0100
commit667e4e72a8e64a094d57ceeb6442cef08f1ef0e1 (patch)
tree670dfb3eb220ad5d90cc62782cb9fc9a7cc3a648 /src/table/data.rs
parent642bed601f9b5f8a0cf3e99223235e6b3eb33c0a (diff)
downloadgarage-667e4e72a8e64a094d57ceeb6442cef08f1ef0e1.tar.gz
garage-667e4e72a8e64a094d57ceeb6442cef08f1ef0e1.zip
Small fixes
Diffstat (limited to 'src/table/data.rs')
-rw-r--r--src/table/data.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/table/data.rs b/src/table/data.rs
index a491f877..0a7b2cec 100644
--- a/src/table/data.rs
+++ b/src/table/data.rs
@@ -18,7 +18,7 @@ pub struct TableData<F: TableSchema> {
pub instance: F,
pub store: sled::Tree,
- pub gc_todo: sled::Tree,
+ pub(crate) gc_todo: sled::Tree,
pub merkle_updater: Arc<MerkleUpdater>,
}
@@ -239,4 +239,8 @@ where
},
}
}
+
+ pub fn gc_todo_len(&self) -> usize {
+ self.gc_todo.len()
+ }
}