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:

committed by
Johan Wikman

parent
5bf79637c6
commit
57700215ac
@ -547,6 +547,9 @@ static MXS_MONITOR_SERVERS *build_mysql51_replication_tree(MXS_MONITOR *mon)
|
|||||||
/* Set the Slave Role */
|
/* Set the Slave Role */
|
||||||
if (ismaster)
|
if (ismaster)
|
||||||
{
|
{
|
||||||
|
MYSQL_MONITOR *handle = mon->handle;
|
||||||
|
handle->master = database;
|
||||||
|
|
||||||
MXS_DEBUG("Master server found at [%s]:%d with %d slaves",
|
MXS_DEBUG("Master server found at [%s]:%d with %d slaves",
|
||||||
database->server->name,
|
database->server->name,
|
||||||
database->server->port,
|
database->server->port,
|
||||||
|
Reference in New Issue
Block a user