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:
parent
a418387d0a
commit
6b9a2cd0b5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user