Fix verify_master_failure

The master failure verification would not work if the slaves did not have
a state change since MaxScale had started. This can be fixed by treating
the startup of MaxScale as an event of sorts.
This commit is contained in:
Markus Mäkelä 2018-07-12 23:21:22 +03:00
parent 177f7357e0
commit 0750e93eeb
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -47,7 +47,7 @@ MariaDBServer::MariaDBServer(MXS_MONITORED_SERVER* monitored_server, int config_
, m_n_slaves_running(0)
, m_n_slave_heartbeats(0)
, m_heartbeat_period(0)
, m_latest_event(0)
, m_latest_event(time(NULL))
, m_gtid_domain_id(GTID_DOMAIN_UNKNOWN)
, m_topology_changed(true)
, m_print_update_errormsg(true)