Skip to content

Commit

Permalink
Merge pull request #3289 from sysown/v2.0.17-3288
Browse files Browse the repository at this point in the history
Closes #3288: Added extra logging to 'monitor_replication_lag_thread' when 'Seconds_Behind_Master' is NULL
  • Loading branch information
renecannao committed Feb 5, 2021
2 parents 74682cc + f07d89d commit f0cd717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/MySQL_Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2042,8 +2042,10 @@ void * monitor_replication_lag_thread(void *arg) {
if (row) {
repl_lag=-1; // this is old behavior
repl_lag=mysql_thread___monitor_slave_lag_when_null; // new behavior, see 669
if (row[j]) { // if Seconds_Behind_Master is not NULL
if (row[j]) { // if Seconds_Behind_Master is not NULL
repl_lag=atoi(row[j]);
} else {
proxy_error("Replication lag on server %s:%d is NULL, using the value %d (mysql-monitor_slave_lag_when_null)\n", mmsd->hostname, mmsd->port, mysql_thread___monitor_slave_lag_when_null);
}
}
}
Expand Down

0 comments on commit f0cd717

Please sign in to comment.