summaryrefslogtreecommitdiffstats
path: root/lib/tdb
Commit message (Collapse)AuthorAgeFilesLines
* tdb/waf: the deps for rt are provided by libreplaceBjörn Jacke2010-08-311-1/+1
|
* Use DocBook DTD rather than Samba one, as no Samba-specific things areJelmer Vernooij2010-08-223-3/+3
| | | | used in the tdb manpages.
* tdb: workaround starvation problem in locking entire database.Rusty Russell2010-08-144-19/+131
| | | | | | | | | | | | | | | | | | | | | | | We saw tdb_lockall() take 71 seconds under heavy load; this is because Linux (at least) doesn't prevent new small locks being obtained while we're waiting for a big log. The workaround is to do divide and conquer using non-blocking chainlocks: if we get down to a single chain we block. Using a simple test program where children did "hold lock for 100ms, sleep for 1 second" the time to do tdb_lockall() dropped signifiantly. There are ln(hashsize) locks taken in the contended case, but that's slow anyway. More analysis is given in my blog at http://rusty.ozlabs.org/?p=120 This may also help transactions, though in that case it's the initial read lock which uses this gradual locking routine; the update-to-write-lock code is separate and still tries to update in one go. Even though ABI doesn't change, minor version bumped so behavior change can be easily detected. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add TDB_DEPS variable filled with required librariesBjörn Jacke2010-08-133-7/+14
| | | | | This is required for Solaris, which needs to link in librt to make use of fdatasync().
* Fix tdb_check() to work with read-only tdb databases. The function ↵Jeremy Allison2010-07-291-3/+3
| | | | | | tdb_lockall() uses F_WRLCK internally, which doesn't work on a fd opened with O_RDONLY. Use tdb_lockall_read() instead. Jeremy.
* tdb: fix the build on mac os x 10.6.4.Günther Deschner2010-07-011-0/+4
| | | | Guenther
* s4-ldb: use CHECK_XSLTPROC_MANPAGES()Andrew Tridgell2010-06-241-2/+1
|
* pytdb: Cleanup formatting.Jelmer Vernooij2010-06-191-3/+8
|
* wafsamba: Fix typo: noextenion -> noextension.Jelmer Vernooij2010-06-191-1/+1
|
* tdb-waf: Don't install binaries when using system tdb.Jelmer Vernooij2010-05-311-17/+17
|
* tdb-waf: Simplify manpage handling.Jelmer Vernooij2010-05-311-17/+4
|
* s4-waf: sanitize library names like the old build system did, only addJelmer Vernooij2010-05-311-1/+1
| | | | -samba4 suffix for libraries that are bundled.
* tdb: commit ABI/tdb-1.2.2.sigsStefan Metzmacher2010-05-111-0/+60
| | | | metze
* tdb: remove unused variable in tdb_new_database().Günther Deschner2010-05-111-1/+0
| | | | Guenther
* tdb: fix short write logic in tdb_new_databaseRusty Russell2010-05-053-17/+17
| | | | | | | | | | | | Commit 207a213c/24fed55d purported to fix the problem of signals during tdb_new_database (which could cause a spurious short write, hence a failure). However, the code is wrong: newdb+written is not correct. Fix this by introducing a general tdb_write_all() and using it here and in the tracing code. Cc: Stefan Metzmacher <metze@samba.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* build: make python development headers not mandatory in standalone libsAndrew Tridgell2010-04-211-1/+1
| | | | | | This needed an update to the python tool in waf thanks to Kai for spotting this
* tdb: update tdb ABI to use hide_symbols=TrueAndrew Tridgell2010-04-205-78/+67
| | | | | | | | | | | | | | We now use -fvisibilty=hidden to hide symbols from outside the tdb shared library. This also moved tdb_transaction_recover() into the tdb_private.h header, as it should never have been a public API. For that reason we are changing the version number. We're only doing a minor version increment as it is extremely unlikely that anyone was actually using tdb_transaction_recover() as its locking requirements were rather unusual. Pair-Programmed-With: Rusty Russell <rusty@samba.org>
* s4-waf: rebuild signature files with the api type mapsAndrew Tridgell2010-04-181-5/+5
| | | | | This is not strictly necessary, as the old types would compare equal, but it is neater to use the generic type names
* tdb-waf: added ABI checking for tdbAndrew Tridgell2010-04-182-0/+97
|
* s4-waf: don't try to use the system lib for the library buildAndrew Tridgell2010-04-131-5/+6
| | | | | | when building library FOO, don't try to find the system library FOO Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* tdb-waf: added build of manpages and config options for RPM buildAndrew Tridgell2010-04-131-3/+44
| | | | | | Building a RPM from the fedora spec file now works with minimal changes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* build: use a common autogen-waf.sh for all buildsAndrew Tridgell2010-04-121-22/+1
| | | | | the symlink will get updated with the right target when waf dist is used in each directory
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-1/+1
| | | | | | Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
* s4-waf: fixed waf distcheck for our standalone libs and s4Andrew Tridgell2010-04-061-0/+4
|
* s4-waf: added simple 'waf test' support for tdb, talloc and ldbAndrew Tridgell2010-04-061-0/+6
|
* s4-waf: autogen-waf.sh for the standalone library buildsAndrew Tridgell2010-04-061-0/+22
|
* s4-waf: use a common pattern for finding buildtools and libsAndrew Tridgell2010-04-061-11/+7
|
* s4-waf: move to a universal method of recursing into subdirsAndrew Tridgell2010-04-061-3/+3
| | | | This works with both standalone lib builds and bundled builds
* s4-waf: fixed finding of buildtools and srcdirAndrew Tridgell2010-04-061-7/+6
|
* s4-waf: avoid having to run waf configure before waf distAndrew Tridgell2010-04-061-2/+3
| | | | This should be useful for building tarballs from a clean checkout
* s4-waf: allow standalone tarball build of librariesAndrew Tridgell2010-04-061-2/+9
|
* s4-waf: added 'waf dist' to our standalone libs as wellAndrew Tridgell2010-04-061-1/+3
|
* s4-waf: added implied_deps for system librariesAndrew Tridgell2010-04-061-1/+2
| | | | | | | | | | | | when we use a system version of a library such as talloc, then we no longer get the automtica dependency propogation of talloc implying libreplace. That means we don't get the includes for libreplace, which means things can fail to build. To fix this this change adds an implied_deps option to CHECK_BUNDLED_SYSTEM(), which tells the samba_deps module to add an implied dependency on the listed targets if the system library is chosen.
* s4-waf: support the use of system librariesAndrew Tridgell2010-04-061-5/+10
| | | | | | | | | distros can set --bundled-libraries=NONE to force use of all system libraries. If the right version isn't found then configure will fail. Users may choose which libraries to use from the system, and which to use bundled libs. The default is to try system libs, and use them if their version matches the one in the source tree.
* s4-waf: set default for bundled librariesAndrew Tridgell2010-04-061-1/+2
|
* s4-waf: set the bundled library extension for some libsAndrew Tridgell2010-04-061-0/+1
|
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* s4-waf: fdatasync is in librt on solaris8Andrew Tridgell2010-04-061-1/+1
|
* build: only enable pytdb on s4 buildAndrew Tridgell2010-04-061-0/+3
|
* build: enable pytdbAndrew Tridgell2010-04-061-0/+6
|
* build: result of hack session with itaAndrew Tridgell2010-04-061-1/+1
|
* build: started to split up wafsamba.py into separate modulesAndrew Tridgell2010-04-061-0/+5
|
* build: added BUILD_SUBDIR() wrapperAndrew Tridgell2010-04-061-1/+1
|
* build: added ADD_CFLAGS() and started of Samba4 buildAndrew Tridgell2010-04-061-1/+1
|
* build: tdb does not depend on tallocAndrew Tridgell2010-04-061-1/+1
|
* build: added waf build rules for ldbAndrew Tridgell2010-04-061-3/+3
|
* build: neater way to find libreplace and start on tevent waf buildAndrew Tridgell2010-04-061-9/+16
|
* build: more binaries for waf tdb buildAndrew Tridgell2010-04-061-0/+12
|
* build: added waf build for tdbAndrew Tridgell2010-04-061-0/+24
|
* tdb: update exports and signatures filesSimo Sorce2010-03-262-0/+2
|