diff options
Diffstat (limited to 'src/table/data.rs')
-rw-r--r-- | src/table/data.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/data.rs b/src/table/data.rs index ffd494d5..13ec62bf 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -12,6 +12,7 @@ use garage_util::error::*; use garage_rpc::system::System; use crate::crdt::Crdt; +use crate::gc::GcTodoEntry; use crate::replication::*; use crate::schema::*; @@ -176,7 +177,7 @@ where let pk_hash = Hash::try_from(&tree_key[..32]).unwrap(); let nodes = self.replication.write_nodes(&pk_hash); if nodes.first() == Some(&self.system.id) { - self.gc_todo.insert(&tree_key, new_bytes_hash.as_slice())?; + GcTodoEntry::new(tree_key, new_bytes_hash).save(&self.gc_todo)?; } } } |