aboutsummaryrefslogtreecommitdiff
path: root/src/table/merkle.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-11 19:30:24 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-11 19:30:24 +0100
commit1ec49980ec876ef9395a9ae088f82d86a1a0d9f6 (patch)
tree1da6ba1614ede38e04b420e359452ab5ac741352 /src/table/merkle.rs
parent3f7a496355bdbeeeee859912fa6fa7a95cb47f3b (diff)
downloadgarage-1ec49980ec876ef9395a9ae088f82d86a1a0d9f6.tar.gz
garage-1ec49980ec876ef9395a9ae088f82d86a1a0d9f6.zip
whoops
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r--src/table/merkle.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs
index 92c18e09..467ce615 100644
--- a/src/table/merkle.rs
+++ b/src/table/merkle.rs
@@ -50,7 +50,7 @@ pub(crate) struct MerkleUpdater {
empty_node_hash: Hash,
}
-#[derive(Clone, Serialize, Deserialize)]
+#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MerkleNodeKey {
// partition: first 16 bits (two bytes) of the partition_key's hash
pub partition: MerklePartition,
@@ -283,6 +283,7 @@ impl MerkleUpdater {
k: &MerkleNodeKey,
v: &MerkleNode,
) -> ConflictableTransactionResult<Hash, Error> {
+ trace!("Put Merkle node: {:?} => {:?}", k, v);
if *v == MerkleNode::Empty {
tx.remove(k.encode())?;
Ok(self.empty_node_hash)