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)
committerMichael Adam <obnox@samba.org>
Mon, 26 Aug 2013 11:35:54 +0000 (13:35 +0200)
commitf4d0c8a9da4613fe8740e67d2a886fbb16680a41
treea589778d002a74ab24684f19dfca4fd04d63ca59
parent91391d83399704ac78f7a332158adef495d85821
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