summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_tunables.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-10-11 11:29:29 +1100
committerAmitay Isaacs <amitay@gmail.com>2012-10-20 02:48:44 +1100
commit83306337df00f11dd03e06c2043e2b27b2f0c17c (patch)
tree00e5c68d7a10d8c2a027285a253f01248313682e /ctdb/server/ctdb_tunables.c
parent1011d10a515f165c29fb5470ad04acf856a6217a (diff)
downloadsamba-83306337df00f11dd03e06c2043e2b27b2f0c17c.tar.gz
samba-83306337df00f11dd03e06c2043e2b27b2f0c17c.tar.xz
samba-83306337df00f11dd03e06c2043e2b27b2f0c17c.zip
ctdbd: locking: Provide non-blocking API for locking of TDB record/db/alldb
This introduces a consistent API for handling locks on single record, complete db or all dbs. The locks are taken out in a child process. In cases of timeout, find the processes that currently hold the lock and log. Callback functions for locking requests take locked boolean to indicate whether the lock was successfully obtained or not. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 1af99cf0de9919dd89af1feab6d1bd18b95d82ff)
Diffstat (limited to 'ctdb/server/ctdb_tunables.c')
-rw-r--r--ctdb/server/ctdb_tunables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c
index 0d01dc85bb..5bd13d5687 100644
--- a/ctdb/server/ctdb_tunables.c
+++ b/ctdb/server/ctdb_tunables.c
@@ -85,6 +85,7 @@ static const struct {
{ "DBSizeWarn", 100000000, offsetof(struct ctdb_tunable, db_size_warn), false },
{ "PullDBPreallocation", 10*1024*10240, offsetof(struct ctdb_tunable, pulldb_preallocation_size), false },
{ "NoIPTakeoverOnDisabled", 0, offsetof(struct ctdb_tunable, no_ip_takeover_on_disabled), false },
+ { "DeadlockTimeout", 300, offsetof(struct ctdb_tunable, deadlock_timeout), false },
};
/*