viced: host hash address collisions
authorMichael Meffie <mmeffie@sinenomine.net>
Mon, 19 Apr 2010 14:00:52 +0000 (10:00 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 12 Jul 2010 18:49:22 +0000 (11:49 -0700)
commit6f75caf8e58521dc15ca793ec4767e5529516b43
treed42a688aef5a01652edafaa73c70e4aad8f0fc50
parent421cdc04de9716f994f3bdba17ad4d69494868a5
viced: host hash address collisions

Attempt to resolve collisions when adding a host to the
address hash table and another host with the same address:port
is already present in the hash table. Retrieve the uuid for
the host at that address and if the uuid matches the new host
and not the old, remove the address from the old host and
install the new host into the address hash.

Change-Id: Id182f907f63be556c61ffb91777edd35f0aa950d
Reviewed-on: http://gerrit.openafs.org/1786
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/viced/host.c