1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/tdb
Rusty Russell 54a51839ea Make tdb transaction lock recursive (samba version)
This patch replaces 6ed27edbcd and
1a416ff13c, which fixed the bug where traversals
inside transactions would release the transaction lock early.

This solution is more general, and solves the more minor symptom that nested
traversals would also release the transaction lock early.  (It was also suggestd in
Volker's comment in 6ed27ed).

This patch also applies to ctdb, if the traverse.c part is removed (ctdb's tdb
code never received the previous two fixes).

Tested using the testsuite from ccan (adapted to the samba code).  Thanks to
Michael Adam for feedback.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Adam <obnox@samba.org>
2009-07-20 22:17:20 +02:00
..
common Make tdb transaction lock recursive (samba version) 2009-07-20 22:17:20 +02:00
docs Add tdb_transaction_prepare_commit() 2009-03-31 13:15:54 +11:00
include Add tdb_transaction_prepare_commit() 2009-03-31 13:15:54 +11:00
python Implement missing functions in pytdb. 2008-12-18 19:41:02 +00:00
tools lib/tdb/tools/tdbtorture.c: fixed memory leak. 2009-06-06 22:33:39 +02:00
web Update tdb and talloc web pages 2009-05-05 19:04:39 -04:00
abi_checks.sh Sort the signature files 2009-07-03 08:45:30 -04:00
aclocal.m4 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
autogen.sh Remove swig use from tdb standalone build. 2008-12-18 19:49:53 +00:00
build_macros.m4 Add shared-build target to tdb. 2008-09-19 18:07:53 -04:00
config.guess Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
config.mk lib/tdb: don't generate a static library for the samba4 build 2009-02-03 10:24:38 +01:00
config.sub Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
configure.ac tdb: Fix help string in configure flag to enable Python bindings. 2009-06-17 21:12:50 +02:00
install-sh Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
libtdb.m4 tdb: fix define of tdbdir when srcdir != "." 2009-07-03 18:24:42 +02:00
Makefile.in Add exports file and abi checker for tdb 2009-06-15 16:31:12 -04:00
pytdb.c s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings 2009-01-30 14:41:07 -08:00
python.mk lib/tdb: the python bindings don't use swig anymore 2009-02-02 15:16:08 +01:00
release-script.sh fix release scripts to always git clean 2009-06-17 14:18:03 -04:00
rules.mk Add exports file and abi checker for tdb 2009-06-15 16:31:12 -04:00
tdb.exports Add exports file and abi checker for tdb 2009-06-15 16:31:12 -04:00
tdb.mk standalone: Use more variables, preparing to include these files from main 2008-12-23 19:44:11 +01:00
tdb.pc.in Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
tdb.signatures Sort the signature files 2009-07-03 08:45:30 -04:00