tdb: automatically identify Jenkins hash tdbs
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 24 Sep 2010 06:09:43 +0000 (15:39 +0930)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Oct 2010 12:25:14 +0000 (14:25 +0200)
commit29ab853e0750499b0fb9625d32fd67d9695b7007
treef1abcb49ea31489bc1cab6067c959735bc4efd92
parentb0a1fadb2eeb053e90dd5ff7162e3cb4c2d843c6
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>
(cherry picked from commit ccac258d14dda7d8a994a7b80474ce6d85478a6d)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/open.c