ctdb-recoverd: Optimise check for rebalance candidates in LCP2
commit9e5ef44f32fad6606bd95e619f0720a72344e441
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Feb 2014 03:28:54 +0000 (7 14:28 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 19 Feb 2014 01:04:47 +0000 (19 12:04 +1100)
tree8e19226cecf173a1df94b69ff3c984ede7ad61c8
parent2532149f8f9bbe6d3c8f5ac6e5e4bc2ad1681e27
ctdb-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>
ctdb/server/ctdb_takeover.c