]> git.ozlabs.org Git - ccan/commit
tdb: automatically identify Jenkins hash tdbs
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 24 Sep 2010 04:59:42 +0000 (14:29 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 24 Sep 2010 04:59:42 +0000 (14:29 +0930)
commit16f4f30fdd9748d54274745df8a443d32d15bc53
treed7372792592a373a9ee2d3b3cd0e9cffb2b789dd
parentd117f992bde6b7157a8eecbce8a026f2aa7ab4ae
tdb: automatically identify Jenkins hash tdbs

If the caller to tdb_open_ex() doesn't specify a hash, and tdb_old_hash
doesn't match, try tdb_jenkins_hash.

This makes life simpler, especially with the upcoming TDB_INCOMPATIBLE_HASH
flag.
ccan/tdb/open.c
ccan/tdb/test/run-wronghash-fail.c