summaryrefslogtreecommitdiff
path: root/sql-common/mysql_async.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-08-16 12:32:06 +0300
committerMichael Widenius <monty@askmonty.org>2011-08-16 12:32:06 +0300
commit8ce93bbd64a38514de82e73fade36ba703ada5dd (patch)
tree9d558db883ce18bbce4a90ae9404ad14dae07f57 /sql-common/mysql_async.c
parent13af39824030a675bf2188d3870e56197ef13425 (diff)
downloadmariadb-git-8ce93bbd64a38514de82e73fade36ba703ada5dd.tar.gz
Fixed bug that MAX_USER_CONNECTIONS was not working properly in all situations (which could cause aborted connects)
thd->user_connect is now handled in thd->clenup() which will ensure that it works in all context (including slaves). I added also some DBUG_ASSERT() to ensure that things are working correctly. sql/sql_acl.cc: Reset thd->user_connect on failed check_for_max_user_connections() to ensure we don't decrement value twice. Removed not needed call to decrease_user_connections() as thd->cleanup() will now do it. sql/sql_class.cc: Call decrease_user_connections() in thd->cleanup() sql/sql_connect.cc: Ensure we don't allocate thd->user_connect twice. Simplify check_for_max_user_connections(). sql/sql_parse.cc: Ensure that thd->user_connect is handled properly in for 'change_user' command.
Diffstat (limited to 'sql-common/mysql_async.c')
0 files changed, 0 insertions, 0 deletions