diff options
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/structs.h b/sql/structs.h index 347cb97e152..8aeb41f7a1e 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -183,8 +183,11 @@ typedef struct user_resources { uint updates; /* Maximum number of connections established per hour. */ uint conn_per_hour; - /* Maximum number of concurrent connections. */ - uint user_conn; + /* + Maximum number of concurrent connections. If -1 then no new + connections allowed + */ + int user_conn; /* Values of this enum and specified_limits member are used by the parser to store which user limits were specified in GRANT statement. @@ -217,7 +220,7 @@ typedef struct user_conn { /* Total length of the key. */ uint len; /* Current amount of concurrent connections for this account. */ - uint connections; + int connections; /* Current number of connections per hour, number of updating statements per hour and total number of statements per hour for this account. |