X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=rculfhash.c;h=0b3996416c270072b069fe700764515165bc50b5;hb=e1a68f1d99b97020243da2c47a81c74705dc3381;hp=2565099d2c12b633dce919e927363b10ff63912c;hpb=bd4db1530ed788ea97c8a9e4c0d04ef757181ad6;p=urcu.git diff --git a/rculfhash.c b/rculfhash.c index 2565099..0b39964 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -902,7 +902,7 @@ void fini_table(struct cds_lfht *ht, struct rcu_table *t, * removal so gc lookups use non-logically-removed dummy * nodes. */ - t->size = (i == 1) ? 0 : 1UL << (i - 2); + t->size = 1UL << (i - 1); /* Unlink */ for (j = 0; j < len; j++) { struct cds_lfht_node *fini_node =