daemon: Run an external script if freeze locks were not obtained during recovery
authorAmitay Isaacs <amitay@gmail.com>
Wed, 5 Dec 2012 00:37:26 +0000 (11:37 +1100)
committerMartin Schwenke <martin@meltin.net>
Wed, 8 May 2013 04:14:50 +0000 (14:14 +1000)
commitd22ac9f3f79ea3368fdb49babed2c2252e0d45a5
treeb43120e99b1b15b58e348d8a73648fa6c2560821
parent3a01839e650e47663f22a731486b9297030a6524
daemon: Run an external script if freeze locks were not obtained during recovery

If the freeze child is already created in ctdb_start_freeze(), then it indicates
that the child process has not yet obtained the locks.  This may be because
another process has locked the databases and has not yet released the locks.

In this case, invoke a helper script defined by environmental variable
CTDB_DEBUG_LOCKS, to log information about locks.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit e80b2c15bf8c8fb5c3793acfebbe09d3cdd617b7)
server/ctdb_freeze.c