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)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 12 Dec 2012 04:09:22 +0000 (15:09 +1100)
commite80b2c15bf8c8fb5c3793acfebbe09d3cdd617b7
tree3acaa65f9f1a730f794e06342f5e5886a1d232ee
parent8b2d84482bacd3b31db013496ce82c2e7b730e86
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>
server/ctdb_freeze.c