From 524d23947d4298c2fd33fa4901619fa06f75f8a4 Mon Sep 17 00:00:00 2001 From: Christos Soulios <1561376+csoulios@users.noreply.github.com> Date: Thu, 10 Jun 2021 12:17:36 +0300 Subject: [PATCH] Minor cleanup --- lib/MySQL_Session.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index abc842572..57d5639fb 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -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;