eventscript: don't make ourselves healthy if we're under ban_count
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:22:01 +0000 (23:52 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:22:01 +0000 (23:52 +1030)
commite6488c0e05bab5c4c2c0a6370930b0b27e5ed56e
tree87e20fa973bf90439f1b1538b50f7de54af5d1e6
parent9ecee127e19a9e7cae114a66f3514ee7a75276c5
eventscript: don't make ourselves healthy if we're under ban_count

If we've timed out, but we've not timed out more than
ctdb->tunable.script_ban_count, we pretend we haven't.

There's a logic bug in the way this is done: if we were unhealthy before,
this would set us to "healthy" again (status == 0).  I don't think this
would happen in real life, but it's a little surprising.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/ctdb_monitor.c