aboutsummaryrefslogtreecommitdiff
path: root/src/table/data.rs
diff options
context:
space:
mode:
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()
+ }
}