mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Maintain connection_count atomically
Removed LOCK_connection_count. Removed duplicate denied_connections and connection_errors_max_connection increment from create_new_thread(). Another increment done by CONNECT::close_with_error(). Simplified away CONNECT::thread_count_incremented. Now close_with_error() is always called with connection_count incremented. Part of MDEV-19515 - Improve connect speed
This commit is contained in:
@@ -27,9 +27,6 @@ execute dump_hosts;
|
||||
|
||||
# Notes about this test
|
||||
#
|
||||
# Each connect causes 2 wait/synch/mutex/sql/LOCK_connection_count events:
|
||||
# - 1 in mysqld.cc, create_new_thread(), for the main thread
|
||||
# - 1 in sql_connect.cc, check_user(), for the connected thread
|
||||
# The main thread does not count for BY_ACCOUNT / BY_HOST.
|
||||
# The user thread does count for BY_ACCOUNT, BY_HOST
|
||||
#
|
||||
|
Reference in New Issue
Block a user