ctdb-recovery: Reimplement ctdb_recovery_lock() using ctdb_cluster_mutex()
authorMartin Schwenke <martin@meltin.net>
Tue, 19 Jan 2016 09:33:58 +0000 (20:33 +1100)
committerAmitay Isaacs <amitay@samba.org>
Thu, 28 Apr 2016 07:39:16 +0000 (09:39 +0200)
commit64d557200ed63e1ff21cd0078e86957b689eff7e
tree9e4100d5d4e05ae0c46d58847a13632293b9d7ec
parent0b0b954ff23149655640571801e2a3f572ebeadc
ctdb-recovery: Reimplement ctdb_recovery_lock() using ctdb_cluster_mutex()

Replace the file descriptor for the recovery lock in the CTDB context
with the cluster mutex handle, where non-NULL means locked.
Attempting to take the recovery lock is now asynchronous and no longer
blocks the recovery daemon.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_recover.c
ctdb/server/ctdbd.c