aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 8389c29f..bcf407ec 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -431,7 +431,7 @@ where
pub(crate) fn delete_if_equal(self: &Arc<Self>, k: &[u8], v: &[u8]) -> Result<bool, Error> {
let removed = self.store.transaction(|txn| {
- if let Some(cur_v) = self.store.get(k)? {
+ if let Some(cur_v) = txn.get(k)? {
if cur_v == v {
txn.remove(v)?;
return Ok(true);