recoverd: Clear IP assignment tree on election loss
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Jun 2015 05:49:25 +0000 (15:49 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 16 Jul 2015 04:31:41 +0000 (14:31 +1000)
commit9550a76dc282c5432c70f90c9a840b152539a865
tree79e234a4e51e7395ac8c51eae11ab405473acf4a
parente99963c6aa5169933d26b097536866a0b30bcbba
recoverd: Clear IP assignment tree on election loss

If a node was previously recovery master (say, 20 years ago) and it
becomes recovery master again then, if IP assignments have changed,
verify_remote_ip_allocation() can produce messages like the following
when called during recovery:

  ctdbd: recoverd:Inconsistent IP allocation - node 0 thinks 10.1.1.1 is held by node 0 while it is assigned to node 1

When a node loses an election it should clear all data specific to it
being the recovery master.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit b234ae0a900052b03ca22efab8fa1b9e11f44ecc)
server/ctdb_recoverd.c