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>
Thu, 17 Nov 2011 02:34:29 +0000 (13:34 +1100)
commita6f46ffddc21c696b35f4e4507121f08d39ada48
tree1a04b9d1c96180a3aa87725b6248610df7c91fdb
parent418313dce4b0142d12aa73aeb5e98333055bdbf0
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