ck_ht: Increment n_entries on empty and tombstone insertions.

ck_pring
Samy Al Bahra 12 years ago
parent 9a0d97c6ef
commit 2116dfee3c

@ -731,7 +731,8 @@ ck_ht_set_spmc(ck_ht_t *table,
* deletion counter update would have been published with
* respect to any concurrent probes.
*/
bool replace = candidate->key != CK_HT_KEY_EMPTY;
bool replace = candidate->key != CK_HT_KEY_EMPTY &&
candidate->key != CK_HT_KEY_TOMBSTONE;
if (priority != NULL)
candidate = priority;

Loading…
Cancel
Save