tdb: use jenkins hash for non persistent tdbs
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Sep 2010 10:34:56 +0000 (12:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 Sep 2010 13:52:29 +0000 (15:52 +0200)
commit54e17e1a3771acbba17f662047b6b266b2946d30
tree59df1d3e7bc97ce9376a15c92e44656255efe235
parent27122748472870c4791f2dc4f399ba83ff5b403c
tdb: use jenkins hash for non persistent tdbs

The Jenkins hash produces much less collisions if the keys
only differ a few bits. This is important for the usage
of non-persistent TDBs in Samba.

We use the rwlock field in the TDB header to prevent older
TDB versions from opening.

metze
lib/tdb/common/open.c