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)
commit7f4c591388adae20e98984001385cba26598ec67
treeeef08183e6b22290dfe9d20dc5fd758add8664b1
parent292d7435a360efd7f15a7a99f658a605e07c0a81
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_protocol.h
server/ctdb_takeover.c
server/eventscript.c