MXS-1244: MySQL monitor "detect_replication_lag=true" doesn't work with "mysql51_replication=true"

Added the missing handle->master assignment
This commit is contained in:
MassimilianoPinto 2017-04-21 16:11:30 +02:00 committed by Johan Wikman
parent 5bf79637c6
commit 57700215ac

View File

@ -547,6 +547,9 @@ static MXS_MONITOR_SERVERS *build_mysql51_replication_tree(MXS_MONITOR *mon)
/* Set the Slave Role */
if (ismaster)
{
MYSQL_MONITOR *handle = mon->handle;
handle->master = database;
MXS_DEBUG("Master server found at [%s]:%d with %d slaves",
database->server->name,
database->server->port,