recoverd: Optimise check for rebalance candidates in LCP2
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Feb 2014 03:28:54 +0000 (14:28 +1100)
committerMartin Schwenke <martin@meltin.net>
Wed, 24 Feb 2016 05:57:06 +0000 (16:57 +1100)
commit49b292cdc23f4aed4a192ca473613465427025cf
tree9913cc46019f5ad683bac71915293902125e4ff6
parent2a51338d4236eae0bb41bf419ac98572403c14a3
recoverd: Optimise check for rebalance candidates in LCP2

Currently this can be checked many times.  However, there's no point
calling the rebalance/failback code at all if there are no rebalance
candidates.

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