diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-11-22 18:05:34 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-11-22 18:05:34 +0100 |
commit | b81d8b2e5ab7baa9623d0af002083057cda28a97 (patch) | |
tree | 0b2ebd731ba2cd0aea9454140b5f05b8673ec4ba /sql/sql_connect.cc | |
parent | d2755a2c9c109ddb4e2e0c9feda89431a6c4fd50 (diff) | |
download | mariadb-git-b81d8b2e5ab7baa9623d0af002083057cda28a97.tar.gz |
Add support for signed sysvars.
Make max_user_connections signed, with min allowed value being -1.
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r-- | sql/sql_connect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc index 6ab6f3237d7..bcffad06ad1 100644 --- a/sql/sql_connect.cc +++ b/sql/sql_connect.cc @@ -130,7 +130,7 @@ int check_for_max_user_connections(THD *thd, USER_CONN *uc) /* Root is not affected by the value of max_user_connections */ if (global_system_variables.max_user_connections && !uc->user_resources.user_conn && - global_system_variables.max_user_connections < (uint) uc->connections && + global_system_variables.max_user_connections < uc->connections && !(thd->security_ctx->master_access & SUPER_ACL)) { my_error(ER_TOO_MANY_USER_CONNECTIONS, MYF(0), uc->user); |