MXS-1446: Make failover_timeout configurable

The time that MaxScale waits for a failover is now configurable.
This commit is contained in:
Markus Mäkelä
2017-09-26 14:13:24 +03:00
parent 4c6e7a0dbc
commit 316f792242
7 changed files with 61 additions and 2 deletions

View File

@ -522,6 +522,15 @@ bool runtime_alter_monitor(MXS_MONITOR *monitor, const char *key, const char *va
monitorSetScriptTimeout(monitor, ival);
}
}
else if (strcmp(key, CN_FAILOVER_TIMEOUT) == 0)
{
long ival = get_positive_int(value);
if (ival)
{
valid = true;
monitorSetFailoverTimeout(monitor, ival);
}
}
else
{
/** We're modifying module specific parameters and we need to stop the monitor */