aboutsummaryrefslogtreecommitdiff
path: root/src/table/table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-02-24 11:05:59 +0100
committerAlex Auvolat <alex@adnab.me>2021-02-24 11:05:59 +0100
commit09fd6ea7f02f5e8a7642942c52227056464b8833 (patch)
treec6541bd31f3b5cb29b581520f803c0077056280d /src/table/table.rs
parenta52ab696403ebb824618e0f18ef9f4e707648439 (diff)
downloadgarage-09fd6ea7f02f5e8a7642942c52227056464b8833.tar.gz
garage-09fd6ea7f02f5e8a7642942c52227056464b8833.zip
I was tired yesterday
Diffstat (limited to 'src/table/table.rs')
-rw-r--r--src/table/table.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/table.rs b/src/table/table.rs
index bcf407ec..8b16173e 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -433,7 +433,7 @@ where
let removed = self.store.transaction(|txn| {
if let Some(cur_v) = txn.get(k)? {
if cur_v == v {
- txn.remove(v)?;
+ txn.remove(k)?;
return Ok(true);
}
}