Skip to content

Commit

Permalink
add additional check that tombstone != empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMakeev committed Feb 15, 2024
1 parent b37e462 commit 9000354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExcaliburHash/ExcaliburHash.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ template <typename TKey, typename TValue, unsigned kNumInlineItems = 1, typename

EXLBR_ASSERT(!TKeyInfo::isEqual(TKeyInfo::getTombstone(), key));
EXLBR_ASSERT(!TKeyInfo::isEqual(TKeyInfo::getEmpty(), key));
EXLBR_ASSERT(!TKeyInfo::isEqual(TKeyInfo::getEmpty(), TKeyInfo::getTombstone()));
uint32_t numBuckets = m_numBuckets;

// numBucketsThreshold = (numBuckets * 3/4) (but implemented using bit shifts)
Expand Down

0 comments on commit 9000354

Please sign in to comment.