mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: thread_count
move thread_count handling into THD: * increment thread_count in THD constructor * decrement thread_count in THD destructor * never modify thread_count directly!
This commit is contained in:
@ -134,7 +134,6 @@ post_init_event_thread(THD *thd)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
thread_safe_increment32(&thread_count);
|
||||
add_to_active_threads(thd);
|
||||
inc_thread_running();
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user