recoverd: Move code to ban other nodes after we get local node flags
authorAmitay Isaacs <amitay@gmail.com>
Thu, 27 Jun 2013 06:01:16 +0000 (16:01 +1000)
committerMichael Adam <obnox@samba.org>
Mon, 26 Aug 2013 11:35:54 +0000 (13:35 +0200)
commitd142dd04a81ebbe0ecb43559c87519291c4262de
treea14433cc8fc73f737974626ff1dac05069126694
parentc102eefead7cc3a3486229e89362f440d2f5fb4e
recoverd: Move code to ban other nodes after we get local node flags

If a node gets banned first, then it should not ban other nodes.

This code was moved up in main_loop to avoid waiting for nodemap
from other nodes (commit 83b0261f2cb453195b86f547d360400103a8b795).

To prevent a banned node from banning other nodes, we need to first get
nodemap information from local node, so trying to ban other nodes can
fail if we are already banned.

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