recoverd: Update capabilities only if the current node is active
authorAmitay Isaacs <amitay@gmail.com>
Thu, 27 Jun 2013 05:33:49 +0000 (15:33 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jul 2013 07:47:05 +0000 (17:47 +1000)
commit24a0bc600acbe3deea9549ce87567e9e0f779a89
treebb9e13f30b15895a17f8fd2bb5e69a662ea8b2f3
parent42c8c05d23dcd22404d6c761171ffe210734150c
recoverd: Update capabilities only if the current node is active

Since we do an early return if a node is stopped or banned, move update
capabilities code below the early return and just before we check the
capabilities of current recovery master.

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