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 02:59:09 +0000 (12:59 +1000)
commitae1693905036ecdbc4594fde1f12500faae4a554
tree23ed0f9a3ecd7efabd6e9090618029c0ae373e3d
parent593a17678fbd3109e118154b034d43b852659518
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>
server/ctdb_recoverd.c