diff options
Diffstat (limited to 'hicn-plugin/src/hashtb.c')
-rw-r--r-- | hicn-plugin/src/hashtb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hicn-plugin/src/hashtb.c b/hicn-plugin/src/hashtb.c index 0bdb91c0d..5d41b7aa9 100644 --- a/hicn-plugin/src/hashtb.c +++ b/hicn-plugin/src/hashtb.c @@ -485,7 +485,8 @@ loop_buckets: * If we are doing lookup for a data, do not take a * lock in case of a hit with a CS entry */ - bucket->hb_entries[i].locks++; + if (!(*is_cs)) + bucket->hb_entries[i].locks++; *bucket_is_overflow = is_overflow; ret = HICN_ERROR_HASHTB_EXIST; goto done; |