From 6b9a2cd0b5545b45c65d68f49e01f4e39e20498a 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/mysql_mon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/modules/monitor/mysql_mon.c b/server/modules/monitor/mysql_mon.c index 1046fea10..031778982 100644 --- a/server/modules/monitor/mysql_mon.c +++ b/server/modules/monitor/mysql_mon.c @@ -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,