aboutsummaryrefslogtreecommitdiff
path: root/src/table/merkle.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-12 15:40:54 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-12 15:40:54 +0100
commita1442f072ad9427851f49103083582637ddcdbd4 (patch)
tree44f3ba215528ff1242cacfc5d139a564096e6275 /src/table/merkle.rs
parentcbe7e1a66a9dceaaeae0467b4eefe51afd5b297c (diff)
downloadgarage-a1442f072ad9427851f49103083582637ddcdbd4.tar.gz
garage-a1442f072ad9427851f49103083582637ddcdbd4.zip
Implement garage stats to get info on node contents
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r--src/table/merkle.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs
index a164df04..b04a2a88 100644
--- a/src/table/merkle.rs
+++ b/src/table/merkle.rs
@@ -32,7 +32,7 @@ pub fn hash_of_merkle_partition_opt(p: Option<MerklePartition>) -> Hash {
// 16 bits (two bytes) of item's partition keys' hashes.
// It builds one Merkle tree for each of these 2**16 partitions.
-pub(crate) struct MerkleUpdater {
+pub struct MerkleUpdater {
table_name: String,
background: Arc<BackgroundRunner>,
@@ -40,7 +40,7 @@ pub(crate) struct MerkleUpdater {
// - key = the key of an item in the main table, ie hash(partition_key)+sort_key
// - value = the hash of the full serialized item, if present,
// or an empty vec if item is absent (deleted)
- pub(crate) todo: sled::Tree,
+ pub todo: sled::Tree,
pub(crate) todo_notify: Notify,
// Content of the merkle tree: items where