ck_ht: Fix bug in tombstone replacement on set.

We must force a reprobe before setting the old
slot key field to a tombstone.
ck_pring
Samy Al Bahra 13 years ago
parent a7031bf938
commit ef82078e59

@ -541,9 +541,9 @@ ck_ht_set_spmc(ck_ht_t *table,
ck_pr_store_ptr(&priority->value, (void *)entry->value);
ck_pr_fence_store();
ck_pr_store_ptr(&priority->key, (void *)entry->key);
ck_pr_store_64(&map->deletions, map->deletions + 1);
ck_pr_fence_store();
ck_pr_store_ptr(&candidate->key, (void *)CK_HT_KEY_TOMBSTONE);
ck_pr_store_64(&map->deletions, map->deletions + 1);
ck_pr_fence_store();
} else {
/*

Loading…
Cancel
Save