diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:09:17 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:09:17 +0200 |
commit | 17918e2ef5dec8d131c4242111688b2a2e96aade (patch) | |
tree | 6eaf497208c10cb93e3b61de6545b25a46a13a85 /src/table/data.rs | |
parent | 0ab21e780e8b944fb2e231c45b3777add27f368d (diff) | |
download | garage-17918e2ef5dec8d131c4242111688b2a2e96aade.tar.gz garage-17918e2ef5dec8d131c4242111688b2a2e96aade.zip |
Whoops
Diffstat (limited to 'src/table/data.rs')
-rw-r--r-- | src/table/data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/data.rs b/src/table/data.rs index f6d49b4d..6352ac24 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -243,7 +243,7 @@ where pub(crate) fn delete_if_equal(self: &Arc<Self>, k: &[u8], v: &[u8]) -> Result<bool, Error> { let removed = self.store.db().transaction(|mut tx| { - let remove = matches!(tx.get(&self.store, k)?, Some(cur_v) if cur_v == v => true); + let remove = matches!(tx.get(&self.store, k)?, Some(cur_v) if cur_v == v); if remove { tx.remove(&self.store, k)?; tx.insert(&self.merkle_todo, k, vec![])?; |