summaryrefslogtreecommitdiffstats
path: root/lib/tdb
Commit message (Collapse)AuthorAgeFilesLines
* tdb: setup TEST_DATA_PREFIX for make testStefan Metzmacher2010-12-271-1/+5
| | | | metze
* tdb:tdbtorture: use TEST_DATA_PREFIX for filesStefan Metzmacher2010-12-241-8/+30
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 24 18:17:53 CET 2010 on sn-devel-104
* tdb:tdbtest: use TEST_DATA_PREFIX for filesStefan Metzmacher2010-12-241-3/+28
| | | | metze
* tdb: Remove autotools support.Jelmer Vernooij2010-12-2416-3843/+96
|
* tdb: add ABI/tdb-1.2.8.sigsStefan Metzmacher2010-12-231-0/+61
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 23 20:35:42 CET 2010 on sn-devel-104
* tdb: Bump version number after symbol versioning changes.Jelmer Vernooij2010-12-211-1/+1
|
* pytdb: Make PyTdb variable static.Jelmer Vernooij2010-12-211-3/+3
|
* build: introduce SAMBA_CHECK_PYTHON_HEADERSMatthieu Patou2010-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This function is a wrapper around waf's check_python_header. It avoids searching more than once for the headers bringing a small speed improvement and a better lisibility of the logs. But it's mainly to avoid a nasty bug when python libraries are in path pointed by python_LIBPL (ie. /usr/local/lib/python2.6/config/) instead of python_LIBDIR (ie. /usr/local/lib). On the first call waf will correctly find that in order to link with python libs it needs to add -L$python_LIBPL. But on the next calls of check_python_headers, waf will use both the current library path value (ie. -L/usr/local/lib/python2.6/config) and -L$python_LIBDIR (ie. /usr/local/lib/) which will make him beleive that python libraries are in $python_LIBDIR which at the end will make the final link test fails in check_python_headers as it will not use the good directory. So by avoiding calling check_python_headers more than once we avoid making waf fooling itself.
* waf: remove the restriction that private libraries must not have a vnumAndrew Tridgell2010-12-091-3/+1
| | | | | | | | we need the vnum for ABI checking for public libraries built as private libraries when bundled Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 9 12:47:41 CET 2010 on sn-devel-104
* waf-abi: auto-generate per-symbol versions from ABI filesAndrew Tridgell2010-12-091-1/+1
| | | | | | | | | | | | | This changes our version-script generation to use the ABI files that are saved in git with each version number change of our public libraries. We use these ABI files to generate a linker version script that gives the exact version number that each symbol was introduced. This provides us with automatic fine grained symbol versioning. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pkgconfig: add @LIB_RPATH@ to our link flagsAndrew Tridgell2010-12-081-1/+1
| | | | | | | | this is only set when rpath is used on install. It ensures that applications that link against Samba libraries get the rpath right Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 8 12:46:00 CET 2010 on sn-devel-104
* tdb:common/open.c - use "discard_const_p" for certain "tdb->name" assignmentsMatthias Dieter Wallnöfer2010-11-271-2/+2
| | | | In order to suppress compiler warnings.
* tdb:tdbstore.c - remove an useless '\'Matthias Dieter Wallnöfer2010-11-271-1/+1
| | | | Discovered by a warning of the Tru64 host on the buildfarm.
* Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher2010-11-221-1/+1
| | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
* tdb: set tdb->name early, as it's needed for tdb_name()Stefan Metzmacher2010-11-121-6/+27
| | | | | | | | | | tdb_name() might be used within the given log function, which might be called from within tdb_open_ex(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 12 11:22:21 UTC 2010 on sn-devel-104
* waf: added reconfigure targets to our librariesAndrew Tridgell2010-11-031-0/+5
| | | | | This allows you to do "make reconfigure" to re-run configure only if needed
* tdb: Use waf by default.Jelmer Vernooij2010-11-012-14/+15
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 1 06:04:14 UTC 2010 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-66/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* waf: Only specify vnum for non-private libraries.Jelmer Vernooij2010-10-261-6/+12
|
* waf: Rename some BUNDLED_ functios to PRIVATE_.Jelmer Vernooij2010-10-231-1/+1
|
* tdb: Revert re-addition of tdb_set_logging_function.Jelmer Vernooij2010-10-233-3/+0
| | | | | | | | I accidentally committed this patch which we carry in the Debian packages. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 23 18:37:16 UTC 2010 on sn-devel-104
* tdb: commit the version 1.2.7 signaturesMatthias Dieter Wallnöfer2010-10-231-0/+61
|
* Lowercase socket_wrapper name.Jelmer Vernooij2010-10-213-0/+3
| | | | | | | Avoid linking against socket_wrapper outside of developer mode. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 21 20:26:11 UTC 2010 on sn-devel-104
* tdb: Set _PUBLIC_ in C file rather than header files (Debian bug 600898)Jelmer Vernooij2010-10-2112-128/+126
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 21 11:47:22 UTC 2010 on sn-devel-104
* waf: replace the is_bundled option with private_libraryAndrew Tridgell2010-10-211-1/+1
| | | | | 'private_library' better captures what we are trying to get at when we bundle a library
* s4-build: fixed some formattingAndrew Tridgell2010-10-211-1/+2
| | | | indentation was far too deep
* tdb: Bump version to 1.2.7 after addition of pytdb.__version__.Jelmer Vernooij2010-10-171-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 17 18:23:16 UTC 2010 on sn-devel-104
* waf: fixed exit status of test suitesAndrew Tridgell2010-10-071-2/+4
| | | | use RUN_COMMAND() to handle signal errors and exit status
* tdb: Only use system pytdb when using system tdb.Jelmer Vernooij2010-10-041-2/+2
|
* tdb: Support using system pytdb.Jelmer Vernooij2010-10-041-8/+9
|
* pytdb: Add __version__ attribute.Jelmer Vernooij2010-10-043-1/+10
|
* pytdb: Include Python.h first to prevent warning.Jelmer Vernooij2010-10-021-1/+1
|
* pytdb: Check errors after PyObject_New() callsKirill Smelkov2010-10-021-0/+7
| | | | | | | | The call could fail with e.g. MemoryError, and we'll dereference NULL pointer without checking. Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_repack()Kirill Smelkov2010-10-022-0/+15
| | | | | | Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add TDB_INCOMPATIBLE_HASH open flagKirill Smelkov2010-10-021-0/+1
| | | | | | | | | | | 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>
* tdb: fix non-WAF build, commit 1.2.6 ABI file.Rusty Russell2010-09-272-1/+62
| | | | | | Sorry Jeremy. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash.Rusty Russell2010-09-276-6/+23
| | | | | | | | | | | | | | | | 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>
* tdb: automatically identify Jenkins hash tdbsRusty Russell2010-09-271-14/+27
| | | | | | | | | | If the caller to tdb_open_ex() doesn't specify a hash, and tdb_old_hash doesn't match, try tdb_jenkins_hash. This was Metze's idea: it makes life simpler, especially with the upcoming TDB_INCOMPATIBLE_HASH flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add Bob Jenkins lookup3 hash as helper hash.Rusty Russell2010-09-277-18/+447
| | | | | | | | | | This is a better hash than the default: shipping it with tdb makes it easy for callers to use it as the hash by passing it to tdb_open_ex(). This version taken from CCAN and modified, which took it from http://www.burtleburtle.net/bob/c/lookup3.c. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add restoreVolker Lendecke2010-09-235-2/+310
| | | | Based on an idea by Simon McVittie, largely rewritten
* lib/tdb: fix c++ build warning in tdb_header_hash().Günther Deschner2010-09-201-1/+1
| | | | Guenther
* pytdb: Make filename argument optional.Jelmer Vernooij2010-09-192-13/+15
|
* pytdb: Add support for tdb_freelist_size()Kirill Smelkov2010-09-192-0/+9
| | | | | | Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_transaction_prepare_commit()Kirill Smelkov2010-09-192-0/+18
| | | | | | Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_enable_seqnum, tdb_get_seqnum and ↵Kirill Smelkov2010-09-192-0/+30
| | | | | | | | tdb_increment_seqnum_nonblock Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Update open flags to match those for tdb_open() in tdb.hKirill Smelkov2010-09-191-0/+6
| | | | | | | | | Namely TDB_NOSYNC, TDB_SEQNUM, TDB_VOLATILE, TDB_ALLOW_NESTING and TDB_DISALLOW_NESTING were missing. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Fix repr segfault for internal dbKirill Smelkov2010-09-192-1/+11
| | | | | | | | | | | | | | | The problem was tdb->name is NULL for TDB_INTERNAL databases, and so it was crashing ... #0 0xb76944f3 in strlen () from /lib/i686/cmov/libc.so.6 #1 0x0809862b in PyString_FromFormatV (format=0xb72b6a26 "Tdb('%s')", vargs=0xbfc26a94 "") at ../Objects/stringobject.c:211 #2 0x08098888 in PyString_FromFormat (format=0xb72b6a26 "Tdb('%s')") at ../Objects/stringobject.c:358 #3 0xb72b65f2 in tdb_object_repr (self=0xb759e060) at ./pytdb.c:439 Cc: 597089@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_add_flags() & tdb_remove_flags()Kirill Smelkov2010-09-192-0/+27
| | | | | | | | | Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* tdb: added TDB_NO_FSYNC env variableAndrew Tridgell2010-09-161-0/+4
| | | | this might help reduce test times and load on test machines
* tdb: add ABI/tdb-1.2.4.sigsStefan Metzmacher2010-09-141-0/+60
| | | | metze