From: Kirill Smelkov Date: Sat, 2 Oct 2010 13:43:40 +0000 (+0400) Subject: pytdb: Add TDB_INCOMPATIBLE_HASH open flag X-Git-Url: http://git.samba.org/?p=metze%2Fctdb%2Fwip.git;a=commitdiff_plain;h=07880810941850e81442b888cd70d810d3f80fc3 pytdb: Add TDB_INCOMPATIBLE_HASH open flag In 2dcf76 Rusty added TDB_INCOMPATIBLE_HASH open flag which selects Jenkins lookup3 hash for new databases. Expose this flag to python users too. Cc: Rusty Russell Signed-off-by: Kirill Smelkov Signed-off-by: Jelmer Vernooij --- diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index f2638db4..c2ba6613 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -572,6 +572,7 @@ void inittdb(void) PyModule_AddObject(m, "VOLATILE", PyInt_FromLong(TDB_VOLATILE)); PyModule_AddObject(m, "ALLOW_NESTING", PyInt_FromLong(TDB_ALLOW_NESTING)); PyModule_AddObject(m, "DISALLOW_NESTING", PyInt_FromLong(TDB_DISALLOW_NESTING)); + PyModule_AddObject(m, "INCOMPATIBLE_HASH", PyInt_FromLong(TDB_INCOMPATIBLE_HASH)); PyModule_AddObject(m, "__docformat__", PyString_FromString("restructuredText"));