recoverd: An inactive node should not force recovery master elections
authorMartin Schwenke <martin@meltin.net>
Fri, 6 Jul 2012 10:36:48 +0000 (20:36 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 8 Aug 2012 06:14:52 +0000 (16:14 +1000)
commite7dc10da3ced54ea9d719ad167ee42dcca8dce75
tree7404170b09e14266f37e4b3cc07c446320f1d192
parenta0c30c820fd47d4f8620dc060c825be10754f5d1
recoverd: An inactive node should not force recovery master elections

An inactive node can't become the recovery master.  So if an inactive
node notices that the recovery master is inactive, it shouldn't force
an election for recovery master and nominate itself as a candidate.
This can cause the recovery master to flip-flop between nodes when all
nodes are inactive.

If there is actually an active node then it will trigger the election.

This is fairly cosmetic but is a step along the way towards ironing
out weirdness when all nodes are stopped.

Also, fix a related comment.

Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_recoverd.c