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)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jul 2013 07:47:05 +0000 (17:47 +1000)
commit877923c8aee49eb3ef610d83727f41ae2f9d09ba
tree469af4e40f8274c20b791782ea3c7d4dd8117bae
parent350ba6907b8f7122c4df21879ffbb3b74e8df93c
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