tdb2: Make TDB1 use the same tdb_hash() wrapper as TDB2
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:11:13 +0000 (07:41 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:11:13 +0000 (07:41 +0930)
commitf7e84f8ef86c3323f70e2fa30fd8a49cab1febf9
tree580a9c1302b332602263b7f1192ea5ee61d43521
parentb4a5c6dcb6c60a32b92772396dadfffa6b721732
tdb2: Make TDB1 use the same tdb_hash() wrapper as TDB2

This means converting the tdb1 inbuilt hash functions to the
tdb2-style, so they return 64 bit.  We truncate to 32 bit everywhere
but in tdb_check() which needs to do so explicitly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 3e46dde21261966941469a6c75e1b45cd2d26324)
12 files changed:
lib/tdb2/private.h
lib/tdb2/tdb1.h
lib/tdb2/tdb1_check.c
lib/tdb2/tdb1_hash.c
lib/tdb2/tdb1_lock.c
lib/tdb2/tdb1_open.c
lib/tdb2/tdb1_private.h
lib/tdb2/tdb1_tdb.c
lib/tdb2/tdb1_traverse.c
lib/tdb2/test/run-tdb1-3G-file.c
lib/tdb2/test/run-tdb1-incompatible.c
lib/tdb2/test/run-tdb1-wronghash-fail.c