diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-19 17:00:31 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-21 17:55:09 +0400 |
commit | a61baa7a2573719116d07812f274957590c4cb6b (patch) | |
tree | 318edd871acf13cdd5abbb279a8066bc280a88af /sql/scheduler.cc | |
parent | 0bee021b78af8d45b2510a79244b9925032c4765 (diff) | |
download | mariadb-git-a61baa7a2573719116d07812f274957590c4cb6b.tar.gz |
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
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r-- | sql/scheduler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc index 5f24495059f..a4b9dd0c34a 100644 --- a/sql/scheduler.cc +++ b/sql/scheduler.cc @@ -112,7 +112,7 @@ void post_kill_notification(THD *thd) void one_thread_per_connection_scheduler(scheduler_functions *func, ulong *arg_max_connections, - uint *arg_connection_count) + Atomic_counter<uint> *arg_connection_count) { scheduler_init(); func->max_threads= *arg_max_connections + 1; |