rculfhash: Fix ht lazy grow logic.
authorLai Jiangshan <laijs@cn.fujitsu.com>
Wed, 2 Nov 2011 15:20:11 +0000 (11:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 2 Nov 2011 15:20:11 +0000 (11:20 -0400)
commitab65b890d706250367f5b66d86fd0527b57f7b85
treec8f8580b437a52cde2d11972a2b34abb8047dadb
parent8ed51e048a8e89b09cca31271d640bbaa521c74a
rculfhash: Fix ht lazy grow logic.

"size < target_size" in cds_lfht_resize_lazy() which is always true
confuses me.

I think we should grow the ht only when we success to increase
the resize_target.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c
This page took 0.025257 seconds and 4 git commands to generate.