Skip to content

Commit

Permalink
Fix to broken downcount.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaum committed Dec 30, 2023
1 parent 9c82e0a commit 537c3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/db/src/tuplebox/slots/slotted_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl<'a> SlottedPage<'a> {

pub(crate) fn dncount(&self, slot_id: SlotId) -> Result<(), SlotBoxError> {
let index_entry = self.get_index_entry_mut(slot_id);
let new_count = index_entry.refcount.fetch_sub(1, SeqCst) - 1;
let new_count = index_entry.refcount.fetch_sub(1, SeqCst);
if new_count == 0 {
self.remove_slot(slot_id)?;
}
Expand Down

0 comments on commit 537c3fd

Please sign in to comment.