pytdb: Add TDB_INCOMPATIBLE_HASH open flag
authorKirill Smelkov <kirr@mns.spb.ru>
Sat, 2 Oct 2010 13:43:40 +0000 (17:43 +0400)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 2 Oct 2010 20:36:52 +0000 (22:36 +0200)
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@rustcorp.com.au>
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
lib/tdb/pytdb.c

index f2638db492e86c403736571c0f9522eb9d02f8d1..c2ba661369233a4e297d67bf3051da4b573a186b 100644 (file)
@@ -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"));