Add a new event "ipreallocated"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 30 Aug 2010 08:08:38 +0000 (18:08 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 30 Aug 2010 08:09:30 +0000 (18:09 +1000)
commitc95f4258d8d58617a097e8c72bc7df9ef8665096
tree7dad637d3fb60ad163f5115226aefe1b88a6073a
parent3edec07807905489053e1b8bc23d477c48d8bb67
Add a new event "ipreallocated"
    This is called everytime a reallocation is performed.

    While STARTRECOVERY/RECOVERED events are only called when
    we do ipreallocation as part of a full database/cluster recovery,
    this new event can be used to trigger on when we just do a light
    failover due to a node becomming unhealthy.

    I.e. situations where we do a failover but we do not perform a full
    cluster recovery.

    Use this to trigger for natgw so we select a new natgw master node
    when failover happens and not just when cluster rebuilds happen.

(This used to be ctdb commit 7f4c591388adae20e98984001385cba26598ec67)
ctdb/common/ctdb_util.c
ctdb/config/events.d/11.natgw
ctdb/include/ctdb_protocol.h
ctdb/server/ctdb_takeover.c
ctdb/server/eventscript.c