1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb
Rusty Russell 5f40176e88 tdb: don't suppress the transaction lock because of the allrecord lock.
tdb_transaction_lock() and tdb_transaction_unlock() do nothing if we
hold the allrecord lock.  However, the two locks don't overlap, so
this is wrong.

This simplification makes the transaction lock a straight-forward nested
lock.

There are two callers for these functions:
1) The transaction code, which already makes sure the allrecord_lock
   isn't held.
2) The traverse code, which wants to stop transactions whether it has the
   allrecord lock or not.  There have been deadlocks here before, however
   this should not bring them back (I hope!)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

(Imported from commit b754f61d23)

(This used to be ctdb commit 495f3554259b9dbf9ee673c4fe420d98e50e4901)
2010-04-22 13:53:51 +09:30
..
client Fix a compiler warning 2010-04-08 14:28:52 +10:00
common In the recovery daemon, keep track of which node we have assigned public ip 2010-04-08 14:25:26 +10:00
config Fix a thinko in 2ea0a9f1a93781a0d036feb9fcc0d120b182922f. 2010-04-20 10:52:31 +10:00
doc doc: regenerate ctdb(1) manpages after xml change 2010-03-10 07:55:41 +01:00
ib Whitespace changes and using the CTDB_NO_MEMORY() macro changes to 2009-05-21 11:49:16 +10:00
include In the recovery daemon, keep track of which node we have assigned public ip 2010-04-08 14:25:26 +10:00
lib tdb: don't suppress the transaction lock because of the allrecord lock. 2010-04-22 13:53:51 +09:30
packaging new version 1.0.114 2010-03-24 17:21:10 +11:00
server In the recovery daemon, keep track of which node we have assigned public ip 2010-04-08 14:25:26 +10:00
tcp Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
tests server: add "setup" event 2010-02-23 10:38:49 +01:00
tools ctdb regsrvids is much more useful for testing if it sleeps once it has registered its srvid. 2010-02-22 15:34:26 +11:00
utils From Elia Pinto <gitter.spiros@gmail.com> 2010-02-22 14:00:33 +11:00
web fix the git path to the repository 2009-05-25 12:15:13 +10:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore From Mathieu Parent <math.parent@gmail.com> 2009-04-08 09:21:11 +10:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh From Mathieu Parent <math.parent@gmail.com> 2009-04-08 09:21:11 +10:00
config.guess Revert "try to restart statd everytime it fails, not just the first time" 2009-09-15 19:33:35 +10:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub Revert "try to restart statd everytime it fails, not just the first time" 2009-09-15 19:33:35 +10:00
configure.ac lib/util: import fault/backtrace handling from samba. 2010-01-20 09:44:36 +01:00
configure.rpm fixed permissions on configure.rpm 2008-04-22 16:48:25 +02:00
COPYING add a licence file 2009-02-07 08:10:34 +11:00
ctdb.pc.in (This used to be ctdb commit b0718551f55d5da9be0e6aba233f57c1ff8509be) 2009-04-08 09:14:20 +10:00
install-sh initial version 2006-11-18 10:41:20 +11:00
Makefile.in config: add 13.per_ip_routing event script 2010-01-20 11:10:57 +01:00