A script can now be called in mysql_mon when a master server loses master status.

This commit is contained in:
Markus Makela
2015-04-07 04:35:32 +03:00
parent aa1fa6cba0
commit 1516422458
2 changed files with 25 additions and 12 deletions

View File

@ -77,7 +77,8 @@ typedef struct {
int write_timeout; /**< Timeout in seconds for each attempt to write to the server.
* There are retries and the total effective timeout value is two times the option value.
*/
char *script;0
char *master_down_script;
int master_down_script_called;
} MYSQL_MONITOR;
#define MONITOR_RUNNING 1