You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repl_lag=mysql_thread___monitor_slave_lag_when_null; // new behavior, see 669
2796
+
override_repl_lag = true;
2796
2797
if (row[j]) { // if Seconds_Behind_Master is not NULL
2797
2798
repl_lag=atoi(row[j]);
2799
+
override_repl_lag = false;
2798
2800
} else {
2799
-
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);
repl_lag = mysql_thread___monitor_slave_lag_when_null; // new behavior, see 669
7832
+
override_repl_lag = true;
7832
7833
if (row[j]) { // if Seconds_Behind_Master is not NULL
7833
7834
repl_lag = atoi(row[j]);
7835
+
override_repl_lag = false;
7834
7836
} else {
7835
-
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);
proxy_debug(PROXY_DEBUG_CLUSTER, 5, "Checksum for mysql_servers from peer %s:%d matches with local checksum %s, reset diff_check to 0.\n", hostname, port, GloVars.checksums_values.mysql_servers.checksum);
proxy_debug(PROXY_DEBUG_CLUSTER, 5, "Checksum for mysql_servers_v2 from peer %s:%d matches with local checksum %s, reset diff_check to 0.\n", hostname, port, GloVars.checksums_values.mysql_servers.checksum);
GloAdmin->admindb->execute_statement((char*)"SELECT DISTINCT hostname, port FROM mysql_servers WHERE hostgroup_id BETWEEN 5202 AND 5700", &error, &cols, &affected_rows, &resultset);
2025
2036
for (std::vector<SQLite3_row*>::iterator it = resultset->rows.begin(); it != resultset->rows.end(); ++it) {
2026
2037
SQLite3_row* r = *it;
2027
-
const std::string& s = "INSERT INTO REPLICATIONLAG_HOST_STATUS VALUES ('" + std::string(r->fields[0]) + "'," + std::string(r->fields[1]) + ",0)";
2038
+
const std::string& s = "INSERT INTO REPLICATIONLAG_HOST_STATUS VALUES ('" + std::string(r->fields[0]) + "'," + std::string(r->fields[1]) + ",null)";
2028
2039
sessdb->execute(s.c_str());
2029
2040
}
2030
2041
delete resultset;
2031
2042
}
2032
2043
GloAdmin->mysql_servers_wrunlock();
2033
2044
}
2034
2045
2035
-
int SQLite3_Server::replicationlag_test_value(const char* p) {
2036
-
int rc = 0; // default
2037
-
std::unordered_map<std::string, int>::iterator it = replicationlag_map.find(std::string(p));
0 commit comments