From c6ff128510731a3edcd40ea3fccbe85ab6c2bfdd Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 9 Feb 2013 19:53:26 -0500 Subject: [PATCH] ck_hs: Move replacement comment to ck_hs_set. --- src/ck_hs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ck_hs.c b/src/ck_hs.c index 4679f64..fb6e0e4 100644 --- a/src/ck_hs.c +++ b/src/ck_hs.c @@ -404,8 +404,11 @@ restart: ck_pr_store_ptr(first, insert); /* - * If a duplicate was found, then we must guarantee that new entry - * is visible with respect to concurrent probe sequences. + * If a duplicate key was found, then delete it after + * signaling concurrent probes to restart. Optionally, + * it is possible to install tombstone after grace + * period if we can guarantee earlier position of + * duplicate key. */ if (slot != NULL && *slot != CK_HS_EMPTY) { ck_pr_inc_uint(&map->generation[h & CK_HS_G_MASK]);