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
parent a418387d0a
commit 6b9a2cd0b5

View File

@ -576,6 +576,9 @@ static MONITOR_SERVERS *build_mysql51_replication_tree(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,