]> git.ipfire.org Git - thirdparty/libvirt.git/commit
add hash table rebalancing in virHashUpdateEntry
authorChristophe Fergeau <teuf@gnome.org>
Thu, 17 Feb 2011 21:14:56 +0000 (22:14 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 17 Feb 2011 23:45:25 +0000 (16:45 -0700)
commit5c5880e047a24342dd12a1471aaf03ce2fd5cc76
treea28ed10d762f818dd364981ff04c52228343430f
parentaebe04d75e3e6b807d22d1f1fea863065b0d00ea
add hash table rebalancing in virHashUpdateEntry

The code in virHashUpdateEntry and virHashAddEntry is really
similar. However, the latter rebalances the hash table when
one of its buckets contains too many elements while the former
does not. Fix this discrepancy.
src/util/hash.c