Add a new event "ipreallocated"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 30 Aug 2010 08:08:38 +0000 (18:08 +1000)
committerMichael Adam <obnox@samba.org>
Fri, 6 Jun 2014 13:00:34 +0000 (15:00 +0200)
commit26704bd06d04ca40f928ce1cdf599b772d2ce7d8
treeae5258d1a6f1125db005f3673f96cdf3ef255c55
parent529912716ae29062679c80806faf0855f18adbeb
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.
(cherry picked from commit 7f4c591388adae20e98984001385cba26598ec67)

Conflicts:

include/ctdb_protocol.h
common/ctdb_util.c
config/events.d/11.natgw
include/ctdb.h
server/ctdb_takeover.c
server/eventscript.c