mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
bugfix for max_user_connections
This commit is contained in:
parent
6259917372
commit
f5e6f0e7ca
1 changed files with 2 additions and 2 deletions
|
@ -233,8 +233,8 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
|
||||||
db ? db : (char*) "");
|
db ? db : (char*) "");
|
||||||
thd->db_access=0;
|
thd->db_access=0;
|
||||||
/* Don't allow user to connect if he has done too many queries */
|
/* Don't allow user to connect if he has done too many queries */
|
||||||
if ((max_questions || max_user_connections) &&
|
if (get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions) &&
|
||||||
get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions))
|
(max_questions || max_user_connections))
|
||||||
return -1;
|
return -1;
|
||||||
if (max_user_connections && thd->user_connect &&
|
if (max_user_connections && thd->user_connect &&
|
||||||
check_for_max_user_connections(thd->user_connect))
|
check_for_max_user_connections(thd->user_connect))
|
||||||
|
|
Loading…
Reference in a new issue