1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/tdb/common
Rusty Russell 2dcf76c924 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 <rusty@rustcorp.com.au>
2010-09-27 10:48:28 +09:30
..
check.c tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash. 2010-09-27 10:48:28 +09:30
dump.c Fix some nonempty blank lines 2010-03-25 10:24:45 +01:00
error.c Fix some nonempty blank lines 2010-03-25 10:24:45 +01:00
freelist.c Fix some nonempty blank lines 2010-03-25 10:24:45 +01:00
freelistcheck.c tdb: rename 'struct list_struct' into 'struct tdb_record' 2009-10-23 18:27:20 +02:00
hash.c tdb: add Bob Jenkins lookup3 hash as helper hash. 2010-09-27 10:48:28 +09:30
io.c Fix some nonempty blank lines 2010-03-25 10:24:45 +01:00
lock.c tdb: workaround starvation problem in locking entire database. 2010-08-14 02:31:22 +09:30
open.c tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash. 2010-09-27 10:48:28 +09:30
tdb_private.h tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash. 2010-09-27 10:48:28 +09:30
tdb.c tdb: fix short write logic in tdb_new_database 2010-05-05 15:37:18 +09:30
transaction.c tdb: fix the build on mac os x 10.6.4. 2010-07-01 23:14:57 +02:00
traverse.c tdb: Add a non-blocking version of tdb_transaction_start 2010-03-26 14:27:47 -04:00