locking: Use external script to debug locking issues
authorAmitay Isaacs <amitay@gmail.com>
Mon, 8 Jul 2013 05:46:53 +0000 (15:46 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 10 Jul 2013 04:33:18 +0000 (14:33 +1000)
commitc620457c0bb0d54d43db2b29cd6191a77dc4006c
treeda92957768f07526bec7838cbedeec2535cf95d9
parent9ae379c91a30dbaf17d7b8f7542d7ebdb74241da
locking: Use external script to debug locking issues

Use an external script to parse /proc/locks and log useful debugging
information about locks rather than doing that in C code.

To use this feature, add configuration variable to /etc/sysconfig/ctdb:

  CTDB_DEBUG_LOCKS=/etc/ctdb/debug_locks.sh

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 2bfb8499366d530f16515b08928056bbda40f781)
ctdb/server/ctdb_lock.c