service.h:Added the 'serviceStartFailed' function which tries to start services with successfully started routers but no successfully started listeners.
mysql_mon.c:Added a call to ServiceStartFailed when servers come available.
This commit is contained in:
Markus Makela
2015-01-05 13:28:27 +02:00
parent e27b51392a
commit 6adccb3c17
4 changed files with 83 additions and 15 deletions

View File

@ -130,6 +130,7 @@ typedef struct server {
(SERVER_RUNNING|SERVER_MASTER|SERVER_SLAVE|SERVER_MAINT)) == \
(SERVER_RUNNING|SERVER_MASTER))
#define SRV_DOWN_STATUS(status) ((status & SERVER_RUNNING) == 0)
/**
* Is the server valid candidate for root master. The server must be running,
* marked as master and not have maintenance bit set.