diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-07-20 13:00:31 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-07-24 12:37:50 +0200 |
commit | b34cafe9d9fb6029d7aa6c5c18ef51c577aa637a (patch) | |
tree | 1ec97d6d4e27d2bdb26ece4059d7926d2924812b /sql/wsrep_mysqld.cc | |
parent | 1fb71c7831c9d8d216873e48ca106ca38a4e975b (diff) | |
download | mariadb-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/wsrep_mysqld.cc')
-rw-r--r-- | sql/wsrep_mysqld.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc index 195b882a3fb..193c06725cf 100644 --- a/sql/wsrep_mysqld.cc +++ b/sql/wsrep_mysqld.cc @@ -2511,15 +2511,13 @@ void wsrep_close_client_connections(my_bool wait_to_end, THD* except_caller_thd) */ server_threads.iterate(kill_remaining_threads, except_caller_thd); - DBUG_PRINT("quit", ("Waiting for threads to die (count=%u)", - uint32_t(thread_count))); - WSREP_DEBUG("waiting for client connections to close: %u", - uint32_t(thread_count)); + DBUG_PRINT("quit", ("Waiting for threads to die (count=%u)", THD_count::value())); + WSREP_DEBUG("waiting for client connections to close: %u", THD_count::value()); while (wait_to_end && server_threads.iterate(have_client_connections)) { sleep(1); - DBUG_PRINT("quit",("One thread died (count=%u)", uint32_t(thread_count))); + DBUG_PRINT("quit",("One thread died (count=%u)", THD_count::value())); } /* All client connection threads have now been aborted */ |