libctdb: track lock for each ctdb_db, complain if they hold too long.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:11:42 +0000 (19:41 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:11:42 +0000 (19:41 +0930)
commitc620cfbad3b5f0d6330ef47f572d4ade08e169e8
treedf8b5679268d8b74982b0481693d298f95b9a447
parentfecb8a19e97f6e453066461b234acdb0946bbadd
libctdb: track lock for each ctdb_db, complain if they hold too long.

In particular, this stops them grabbing two (with wrappers so we can
enhance this logic once we support threads), and warns them if they
re-enter ctdb_service() holding a lock (you are not supposed to block!).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/ctdb.c
libctdb/libctdb_private.h