proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mqr*10));
proxy_error("Cluster: detected a peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mqr*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected a peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mqr*10));
proxy_warning("Cluster: detected a peer %s:%d with mysql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mqr*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with mysql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers_v2 version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms*10));
proxy_error("Cluster: detected a peer %s:%d with mysql_servers_v2 version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms*10));
proxy_warning("Cluster: detected a peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms*10));
proxy_error("Cluster: detected a peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms*10));
proxy_warning("Cluster: detected a peer %s:%d with mysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mu*10));
proxy_error("Cluster: detected a peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mu*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected a peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mu*10));
proxy_warning("Cluster: detected a peer %s:%d with mysql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD MYSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mu*10));
// NOTE: Backup values: 'v' gets invalidated by 'pull_proxysql_servers_from_peer()'
unsignedlonglongv_epoch=v->epoch;
unsignedlonglongv_version=v->version;
unsignedintv_diff_check=v->diff_check;
conststringv_exp_checksum{v->checksum};
if(
(own_version==1)// we just booted
||
(v->epoch>own_epoch)// epoch is newer
){
if(v->diff_check>=diff_ps){
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v_version,v_epoch,v_diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ps*10));
proxy_error("Cluster: detected a peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD MYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v_version,v_epoch,v_diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ps*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PROXYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ps*10));
proxy_warning("Cluster: detected a peer %s:%d with proxysql_servers version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PROXYSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ps*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_pqr*10));
proxy_error("Cluster: detected a peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_pqr*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected a peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_pqr*10));
proxy_warning("Cluster: detected a peer %s:%d with pgsql_query_rules version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL QUERY RULES TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_pqr*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mu_pgsql*10));
proxy_error("Cluster: detected a peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_mu_pgsql*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected a peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mu_pgsql*10));
proxy_warning("Cluster: detected a peer %s:%d with pgsql_users version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL USERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_mu_pgsql*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
proxy_info("Cluster: detected a peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. Proceeding with remote sync\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch);
// Create checksum structures for PostgreSQL servers
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms_pgsql*10));
proxy_error("Cluster: detected a peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u, checksum %s. Own version: %llu, epoch: %llu, checksum %s. Sync conflict, epoch times are EQUAL, can't determine which server holds the latest config, we won't sync. This message will be repeated every %u checks until LOAD PGSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,v->checksum,own_version,own_epoch,own_checksum,(diff_ms_pgsql*10));
proxy_debug(PROXY_DEBUG_CLUSTER,5,"Detected a peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms_pgsql*10));
proxy_warning("Cluster: detected a peer %s:%d with pgsql_servers_v2 version %llu, epoch %llu, diff_check %u. Own version: %llu, epoch: %llu. diff_check is increasing, but version 1 doesn't allow sync. This message will be repeated every %u checks until LOAD PGSQL SERVERS TO RUNTIME is executed on candidate master.\n",hostname,port,v->version,v->epoch,v->diff_check,own_version,own_epoch,(diff_ms_pgsql*10));