tdb: automatically identify Jenkins hash tdbs
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 24 Sep 2010 06:09:43 +0000 (15:39 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 27 Sep 2010 01:18:28 +0000 (10:48 +0930)
commitccac258d14dda7d8a994a7b80474ce6d85478a6d
treef10816ce8e8a62febdb1eb5cb177227e5ed8ef75
parent3258cf3f11bf7c68a2e69e1808c4551cc899725a
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 was Metze's idea: it makes life simpler, especially with the upcoming
TDB_INCOMPATIBLE_HASH flag.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/open.c