recoverd: If obtaining recovery lock fails, try again
authorAmitay Isaacs <amitay@gmail.com>
Thu, 25 Sep 2014 07:17:04 +0000 (17:17 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 25 Sep 2014 23:36:15 +0000 (09:36 +1000)
commitb1758c6a22c16e7798bbb147d5bf8e04b2bf0c55
tree9f576dd7b6b3dc11072f93d5b8e28a098ac60d80
parentbe0e7aba3a569adedc87be74270b079738ad7f13
recoverd: If obtaining recovery lock fails, try again

When ctdb daemon starts up, it considers itself the recovery master
and tries to do first recovery.  However, it's possible that there is
already a recovery master and the current node has not yet heard from it.
So do not ban ourselves immediately if ctdb_recovery_lock() fails when
doing first recovery.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(Imported from commit 57310f80c9b8146a0978d912f73b0a64fde7697e)
server/ctdb_recoverd.c