From b34cafe9d9fb6029d7aa6c5c18ef51c577aa637a Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 20 Jul 2021 13:00:31 +0200 Subject: 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. --- sql/signal_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/signal_handler.cc') diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc index f27676bee19..098d881eca8 100644 --- a/sql/signal_handler.cc +++ b/sql/signal_handler.cc @@ -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) { -- cgit v1.2.1