[PATCH 01/14] pytdb: Add TDB_INCOMPATIBLE_HASH open flag

Kirill Smelkov kirr at landau.phys.spbu.ru
Sat Oct 2 07:43:40 MDT 2010


From: Kirill Smelkov <kirr at mns.spb.ru>

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 <rusty at rustcorp.com.au>
Signed-off-by: Kirill Smelkov <kirr at mns.spb.ru>
---
 lib/tdb/pytdb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c
index f2638db..c2ba661 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"));
 
-- 
1.7.3.1.50.g1e633


More information about the samba-technical mailing list