Add a new event :ipreallocated"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 11 Aug 2010 02:37:51 +0000 (12:37 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 11 Aug 2010 02:37:51 +0000 (12:37 +1000)
commit1a595bad79aa2b6994c9098b86f06bf38444e23c
tree7a14bb4e1831aae98e4b7e78a15d8275db198cec
parente19ef366984223fe94f878aecb50d05990f1ced7
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.
common/ctdb_util.c
config/events.d/11.natgw
include/ctdb.h
server/ctdb_takeover.c
server/eventscript.c