From 57700215ac1bc1e1d67d0e435dbfd6c9c3b9c033 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Fri, 21 Apr 2017 16:11:30 +0200 Subject: [PATCH] MXS-1244: MySQL monitor "detect_replication_lag=true" doesn't work with "mysql51_replication=true" Added the missing handle->master assignment --- server/modules/monitor/mysqlmon/mysql_mon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/modules/monitor/mysqlmon/mysql_mon.c b/server/modules/monitor/mysqlmon/mysql_mon.c index e8c90a4fa..2374c8bc1 100644 --- a/server/modules/monitor/mysqlmon/mysql_mon.c +++ b/server/modules/monitor/mysqlmon/mysql_mon.c @@ -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,