recoverd: when the recmaster is banned, use that information when forcing an election
commit3c65197b7aa662f9f9293e5794a56a31ab409752
authorMichael Adam <obnox@samba.org>
Wed, 26 Jun 2013 07:23:22 +0000 (26 09:23 +0200)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jul 2013 02:59:09 +0000 (2 12:59 +1000)
tree82d65c5400f41e9bc23e37e594288452567be739
parent082da536cb946be781be2e80211dfb40663cb76b
recoverd: when the recmaster is banned, use that information when forcing an election

When we trigger an election because the recmaster considers itself inactive,
update our local nodemap with the recmaster's flags before calling
force_election(). This way, we don't send the inactive node freeze commands
(e.g.) that may fail and then lead to ourselves getting banned.

The theory is that this should help avoiding banning loops.

Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 932360992b08a5483d90c0590218ba0fd756119e)
ctdb/server/ctdb_recoverd.c