diff options
author | Kirill Smelkov <kirr@mns.spb.ru> | 2010-10-02 17:43:40 +0400 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-02 22:36:52 +0200 |
commit | a29142855e3f47a86a07c520a92f73c14e2488d7 (patch) | |
tree | 96da369e5fcfee38ba60f85a5cb3dfdcd9449f19 /lib/tdb | |
parent | 14efa955934b1731df9bfa6cd089ae6e78a4f1d1 (diff) | |
download | samba-a29142855e3f47a86a07c520a92f73c14e2488d7.tar.gz samba-a29142855e3f47a86a07c520a92f73c14e2488d7.tar.bz2 samba-a29142855e3f47a86a07c520a92f73c14e2488d7.zip |
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 <rusty@rustcorp.com.au>
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | 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 f2638db492..c2ba661369 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")); |