From 2dcf76c9247ff02a1779000dbbecdc418473ca41 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Sep 2010 15:45:11 +0930 Subject: tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash. This flag to tdb_open/tdb_open_ex effects creation of a new database: 1) Uses the Jenkins lookup3 hash instead of the old gdbm hash if none is specified, 2) Places a non-zero field in header->rwlocks, so older versions of TDB will refuse to open it. This means that the caller (ie Samba) can set this flag to safely change the hash function. Versions of TDB from this one on will either use the correct hash or refuse to open (if a different hash is specified). Older TDB versions will see the nonzero rwlocks field and refuse to open it under any conditions. Signed-off-by: Rusty Russell --- lib/tdb/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/wscript') diff --git a/lib/tdb/wscript b/lib/tdb/wscript index 970c6287cf..94f85cd708 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -1,7 +1,7 @@ #!/usr/bin/env python APPNAME = 'tdb' -VERSION = '1.2.5' +VERSION = '1.2.6' blddir = 'bin' -- cgit