Log only one warning when failover is initiated

Mysqlmon would log a warning at every monitoring interval when failover
was initiated.
This commit is contained in:
Markus Makela
2016-10-06 16:52:50 +03:00
parent 56f0edb247
commit 9b2209a8d1
2 changed files with 8 additions and 1 deletions

View File

@ -77,6 +77,7 @@ typedef struct
bool failover; /**< If simple failover is enabled */
int failcount; /**< How many monitoring cycles servers must be
down before failover is initiated */
bool warn_failover; /**< Log a warning when failover happens */
} MYSQL_MONITOR;
#endif