summaryrefslogtreecommitdiff
path: root/sql/signal_handler.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-07-20 13:00:31 +0200
committerSergei Golubchik <serg@mariadb.org>2021-07-24 12:37:50 +0200
commitb34cafe9d9fb6029d7aa6c5c18ef51c577aa637a (patch)
tree1ec97d6d4e27d2bdb26ece4059d7926d2924812b /sql/signal_handler.cc
parent1fb71c7831c9d8d216873e48ca106ca38a4e975b (diff)
downloadmariadb-git-b34cafe9d9fb6029d7aa6c5c18ef51c577aa637a.tar.gz
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.
Diffstat (limited to 'sql/signal_handler.cc')
-rw-r--r--sql/signal_handler.cc2
1 files changed, 1 insertions, 1 deletions
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)
{