tdb_compat: handle TDB_INCOMPATIBLE_HASH flag.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Sep 2011 03:25:59 +0000 (12:55 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Sep 2011 03:25:59 +0000 (12:55 +0930)
commit36b455d95227f8ef2f08e3134e289b2862b319f9
treed08bc2518bb12e9e38dac8d81dd74430c0441cd6
parentad3ac7e3c0bdf9b93c6b831f29452fd63fe0818b
tdb_compat: handle TDB_INCOMPATIBLE_HASH flag.

This is only meaningful when using the TDB_VERSION1 flag: it is done
by using a magic hash value (which will fall back to the default hash
if that works instead).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb_compat/tdb_compat.c
lib/tdb_compat/tdb_compat.h