Minor cleanup

pull/3491/head
Christos Soulios 5 years ago
parent 64ae971ff5
commit 524d23947d

@ -4926,10 +4926,10 @@ void MySQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE(
//#endif // TEST_AURORA || TEST_GALERA || TEST_GROUPREP
case PROXYSQL_SESSION_MYSQL:
proxy_debug(PROXY_DEBUG_MYSQL_CONNECTION,8,"Session=%p , DS=%p , session_type=PROXYSQL_SESSION_MYSQL\n", this, client_myds);
if (use_ldap_auth == false) {
free_users=GloMyAuth->increase_frontend_user_connections(client_myds->myconn->userinfo->username, &used_users);
if (use_ldap_auth == true) {
free_users = GloMyLdapAuth->increase_frontend_user_connections(client_myds->myconn->userinfo->username, &used_users);
} else {
free_users=GloMyLdapAuth->increase_frontend_user_connections(client_myds->myconn->userinfo->username, &used_users);
free_users = GloMyAuth->increase_frontend_user_connections(client_myds->myconn->userinfo->username, &used_users);
}
break;
#ifdef PROXYSQLCLICKHOUSE
@ -6202,10 +6202,10 @@ void MySQL_Session::handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_C
reset();
init();
if (client_authenticated) {
if (use_ldap_auth == false) {
GloMyAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->username);
} else {
if (use_ldap_auth == true) {
GloMyLdapAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->username);
} else {
GloMyAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->username);
}
}
client_authenticated=false;

Loading…
Cancel
Save