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)
committerMichael Adam <obnox@samba.org>
Mon, 26 Aug 2013 11:35:56 +0000 (13:35 +0200)
commit148427d9b4d233183ed9e828abdd5b877b66ba49
treedced3fd8c65aa9b320ece3fcc211ded49ed709ef
parent527c44c1b710cd74772d70890d79b2831db39e40
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