recoverd: when the recmaster is banned, use that information when forcing an election
authorMichael Adam <obnox@samba.org>
Wed, 26 Jun 2013 07:23:22 +0000 (09:23 +0200)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jul 2013 07:47:06 +0000 (17:47 +1000)
commitc7156f49616600d1ad97262115728fbb42ef5574
tree884360ec7db639e4be31c80470efa8c89baae0c4
parentd2f641181927f427b80705e28b88777e50a88433
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>
(cherry picked from commit 932360992b08a5483d90c0590218ba0fd756119e)
server/ctdb_recoverd.c