Eventscripts: Add special -ECANCELED status for monitor events that are cancelled
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 17 Nov 2011 02:34:29 +0000 (13:34 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 18 Nov 2011 01:21:36 +0000 (12:21 +1100)
commit85206ee924d8245091264984669abfe99f6e82b9
tree17a80d402358a41c2307d1f4b17626b1a310bc8a
parent09577a797103c5a91fe816a3b9f385382e1791ca
Eventscripts: Add special -ECANCELED status for monitor events that are cancelled

When a monitor event is canceled by a higher priority script, make sure we return
status -ECANCELED to the callback in ctdB_monitor.c
Also treat -ECANCELED as a simple "try monitor event again" and skip modifying any HEALTHY/UNHEALTHY flags when this happens
server/ctdb_monitor.c
server/eventscript.c