mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: move thread_count to THD_count::value()
because the name was misleading, it counts not threads, but THDs, and as THD_count is the only way to increment/decrement it, it could as well be declared inside THD_count.
This commit is contained in:
@ -185,7 +185,7 @@ extern "C" sig_handler handle_fatal_signal(int sig)
|
||||
(uint) thread_scheduler->max_threads +
|
||||
(uint) extra_max_connections);
|
||||
|
||||
my_safe_printf_stderr("thread_count=%u\n", (uint) thread_count);
|
||||
my_safe_printf_stderr("thread_count=%u\n", THD_count::value());
|
||||
|
||||
if (dflt_key_cache && thread_scheduler)
|
||||
{
|
||||
|
Reference in New Issue
Block a user