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>
Thu, 7 Oct 2010 04:47:18 +0000 (15:17 +1030)
commit3f7ed2b46cb304d553d3f7bd34554d695b8ccc52
treec9c1aa2346bb3e3a2d77687dd380c2765b5e2504
parent58c9d90c758aa7c062d84ab97f62947190526356
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