proxy_error("Detected a broken connection while setting INIT CONNECT on %s:%d hg %d : %d, %s\n",myconn->parent->address,myconn->parent->port,current_hostgroup,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection while setting INIT CONNECT on %s:%d hg %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
current_hostgroup,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection while setting LDAP USER VARIABLE on %s:%d hg %d : %d, %s\n",myconn->parent->address,myconn->parent->port,current_hostgroup,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection while setting LDAP USER VARIABLE on %s:%d hg %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
current_hostgroup,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
);
}
detected_broken_connection(__FILE__,__LINE__,__func__,"while setting LDAP USER VARIABLE",myconn,myerr,mysql_error(myconn->mysql));
proxy_error("Detected a broken connection while setting SQL_LOG_BIN on %s:%d hg %d : %d, %s\n",myconn->parent->address,myconn->parent->port,current_hostgroup,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection while setting SQL_LOG_BIN on %s:%d hg %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
current_hostgroup,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection during SET NAMES on %s , %d : %d, %s\n",myconn->parent->address,myconn->parent->port,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection during SET NAMES on %s , %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
);
}
detected_broken_connection(__FILE__,__LINE__,__func__,"during SET NAMES",myconn,myerr,mysql_error(myconn->mysql));
@ -2363,19 +2320,9 @@ bool MySQL_Session::handler_again___status_SETTING_GENERIC_VARIABLE(int *_rc, co
if(myerr>=2000||myerr==0){
boolretry_conn=false;
// client error, serious
if(myerr!=0){
proxy_error("Detected a broken connection while setting %s on %s:%d hg %d : %d, %s\n",var_name,myconn->parent->address,myconn->parent->port,current_hostgroup,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection while setting %s on %s:%d hg %d : %d, %s\n",
var_name,
myconn->parent->address,
myconn->parent->port,
current_hostgroup,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection during setting MYSQL_OPTION_MULTI_STATEMENTS on %s , %d : %d, %s\n",myconn->parent->address,myconn->parent->port,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection during setting MYSQL_OPTION_MULTI_STATEMENTS on %s , %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection during INIT_DB on %s , %d : %d, %s\n",myconn->parent->address,myconn->parent->port,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection during INIT_DB on %s , %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection during change user on %s, %d : %d, %s\n",myconn->parent->address,myconn->parent->port,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection during change user on %s, %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
proxy_error("Detected a broken connection during SET AUTOCOMMIT on %s , %d : %d, %s\n",myconn->parent->address,myconn->parent->port,myerr,mysql_error(myconn->mysql));
}else{
proxy_error(
"Detected a broken connection during SET AUTOCOMMIT on %s , %d : %d, %s\n",
myconn->parent->address,
myconn->parent->port,
ER_PROXYSQL_OFFLINE_SRV,
"Detected offline server prior to statement execution"
);
}
detected_broken_connection(__FILE__,__LINE__,__func__,"during SET AUTOCOMMIT",myconn,myerr,mysql_error(myconn->mysql));
proxy_error_inline(file,line,func,"Detected a broken connection while %s on (%d,%s,%d,%lu) , FD (Conn:%d , MyDS:%d) , user %s , last_used %llums ago : %d, %s\n",action,myconn->parent->myhgc->hid,myconn->parent->address,myconn->parent->port,myconn->get_mysql_thread_id(),myconn->myds->fd,myconn->fd,myconn->userinfo->username,last_used,myerr,msg);
}else{
proxy_error_inline(file,line,func,"Detected a broken connection while %s on (%d,%s,%d,%lu) , user %s , last_used %llums ago : %d, %s\n",action,myconn->parent->myhgc->hid,myconn->parent->address,myconn->parent->port,myconn->get_mysql_thread_id(),myconn->userinfo->username,last_used,myerr,msg);