summaryrefslogtreecommitdiffstats
path: root/lib/tdb
Commit message (Collapse)AuthorAgeFilesLines
* tdb2: create tdb2 versions of various testing TDBs.Rusty Russell2011-06-201-21/+42
| | | | | | | Soon, TDB2 will handle tdb1 files, but until then, we substitute. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-202-4/+4
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: enable VALGRIND to remove valgrind noise.Rusty Russell2011-06-081-35/+0
| | | | | | | | | | | | | | Andrew Bartlett complained that valgrind needs --partial-loads-ok=yes otherwise the Jenkins hash makes it complain. My benchmarking here revealed that at least with modern gcc (4.5) and CPU (Intel i5 32 bit) there's no measurable performance penalty for the "correct" code, so rip out the optimized one. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Jun 8 11:05:47 CEST 2011 on sn-devel-104
* lib/tdb/python/tests/simple.py: don't assume TDB ordering.Rusty Russell2011-06-021-1/+3
| | | | | | | | | TDB2 can break this assumption. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Jun 2 12:07:40 CEST 2011 on sn-devel-104
* tdb: fix a build warning.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* Support the 'PYTHON' environment variable.Jelmer Vernooij2011-04-231-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Apr 23 04:19:05 CEST 2011 on sn-devel-104
* tdb_backup: avoid transaction on backup file, use lockallSimo Sorce2011-04-191-8/+13
| | | | | | | | Transactions have the side effect of generating bigger files. By removing the transaction files get as much as 30% smaller. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 19 23:34:37 CEST 2011 on sn-devel-104
* tdb: make sure we skip over recovery area correctly.Rusty Russell2011-04-193-17/+44
| | | | | | | | | | If it's really the recovery area, we can trust the rec_len field, and don't have to go groping for bitpatterns. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Apr 19 14:15:22 CEST 2011 on sn-devel-104
* tdb_expand: limit the expansion with huge recordsSimo Sorce2011-04-181-5/+20
| | | | | | | ldb can create huge records when saving indexes. Limit the tdb expansion to avoid consuming a lot of memory for no good reason if the record being saved is huge.
* tdb: tdb_repack() only when it's worthwhile.Rusty Russell2011-04-181-6/+31
| | | | | | | | | tdb_repack() is expensive and consumes memory, so we can spend some effort to see if it's worthwhile. In particular, tdbbackup doesn't need to repack: it started with an empty database! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: fix transaction recovery area for converted tdbs.Rusty Russell2011-04-181-2/+4
| | | | | | | | This is why macros are dangerous; these were converting the pointers, not the things pointed to! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: Fix Coverity ID 2238: SECURE_CODINGVolker Lendecke2011-03-301-24/+24
|
* tdb: Fix Coverity ID 2192: NO_EFFECTVolker Lendecke2011-03-271-1/+1
| | | | (ret < 0) can never be true
* tdb: rename convert_string() to tdb_convert_string()Andrew Tridgell2011-03-251-5/+5
| | | | this prevents a conflict with the convert_string() in samba
* lib: don't install public headers if a private libraryAndrew Tridgell2011-03-151-0/+1
| | | | | for talloc/tevent/tdb, only install headers if we are doing a standalone build
* tdb: use public_headers to install header filesAndrew Tridgell2011-03-151-1/+1
|
* tdb: use system include style for system headersAndrew Tridgell2011-03-151-1/+1
|
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-221-1/+1
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* tdb: Fix a C++ warningVolker Lendecke2011-02-121-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104
* build: removed the old autogen.sh and autogen-waf.sh scriptsAndrew Tridgell2011-02-071-11/+0
| | | | | | | for the builds that use waf only, these are no longer needed and just cause confusion Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* tdb: Added doxygen documentation.Andreas Schneider2011-01-193-25/+2454
| | | | | Autobuild-User: Andreas Schneider <asn@samba.org> Autobuild-Date: Wed Jan 19 11:26:34 CET 2011 on sn-devel-104
* waf: ensure "make dist" works from a clean git tree for all librariesAndrew Tridgell2011-01-081-2/+4
| | | | | | | this uses a temporary waf lock file to force the build directory Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Jan 8 02:35:22 CET 2011 on sn-devel-104
* tdbrestore: Update to GPLv3+, remove old FSF address.Jelmer Vernooij2011-01-061-3/+2
|
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* talloc/tdb/tevent: Remove obsolete signatures files.Jelmer Vernooij2011-01-011-61/+0
|
* tdb: add ABI/tdb-1.2.9.sigsStefan Metzmacher2010-12-291-0/+62
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 29 11:26:12 CET 2010 on sn-devel-104
* tdb: tdb_summary() support.Rusty Russell2010-12-297-10/+206
| | | | | Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Dec 29 10:12:05 CET 2010 on sn-devel-104
* 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