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:08:38 +0000 (18:08 +1000)
commit211d358be2da3902e45c44bd888a2508762daa91
treee4920d7848f3f3e70bf9dcb1b3d392af762c0e5a
parentbffaecee9a91d972a1697101aee7b40fbb87edbf
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