aboutsummaryrefslogtreecommitdiff
path: root/src/table/gc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 14:09:17 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 14:09:17 +0200
commit17918e2ef5dec8d131c4242111688b2a2e96aade (patch)
tree6eaf497208c10cb93e3b61de6545b25a46a13a85 /src/table/gc.rs
parent0ab21e780e8b944fb2e231c45b3777add27f368d (diff)
downloadgarage-17918e2ef5dec8d131c4242111688b2a2e96aade.tar.gz
garage-17918e2ef5dec8d131c4242111688b2a2e96aade.zip
Whoops
Diffstat (limited to 'src/table/gc.rs')
-rw-r--r--src/table/gc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/gc.rs b/src/table/gc.rs
index b9c589f4..e8843339 100644
--- a/src/table/gc.rs
+++ b/src/table/gc.rs
@@ -384,7 +384,7 @@ impl GcTodoEntry {
let key = self.todo_table_key();
gc_todo_tree.db().transaction(|mut tx| {
let remove =
- matches!(tx.get(gc_todo_tree, &key)? Some(ov) if ov == self.value_hash.as_slice());
+ matches!(tx.get(gc_todo_tree, &key)?, Some(ov) if ov == self.value_hash.as_slice());
if remove {
tx.remove(gc_todo_tree, &key)?;
}