Fix behavior for 'ldap-max_db_connections' failing to decrease current used connections

pull/3961/head
Javier Jaramago Fernández 4 years ago
parent c46a152a24
commit 96de2329d7

@ -641,7 +641,11 @@ MySQL_Session::~MySQL_Session() {
break;
#endif /* PROXYSQLCLICKHOUSE */
default:
GloMyAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->username);
if (use_ldap_auth == false) {
GloMyAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->username);
} else {
GloMyLdapAuth->decrease_frontend_user_connections(client_myds->myconn->userinfo->fe_username);
}
break;
}
}

Loading…
Cancel
Save