ctdb_hash() => jenkins
Stefan (metze) Metzmacher
metze at samba.org
Fri Oct 8 04:33:52 MDT 2010
Hi Ronnie,
> @@ -99,14 +99,7 @@ bool ctdb_same_address(struct ctdb_address *a1, struct ctdb_address *a2)
> */
> uint32_t ctdb_hash(const TDB_DATA *key)
> {
> - uint32_t value; /* Used to compute the hash value. */
> - uint32_t i; /* Used to cycle through random values. */
> -
> - /* Set the initial value from the key size. */
> - for (value = 0x238F13AF * key->dsize, i=0; i < key->dsize; i++)
> - value = (value + (key->dptr[i] << (i*5 % 24)));
> -
> - return (1103515243 * value + 12345);
> + return tdb_jenkins_hash(discard_const(key));
> }
Don't we need to change the protocol version for this change?
See
http://gitweb.samba.org/?p=metze/ctdb/wip.git;a=shortlog;h=refs/heads/master-tdb
Here're also a few other ctdb/tdb related changes...
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101008/ff3705c8/attachment.pgp>
More information about the samba-technical
mailing list