summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2022-01-24 19:49:58 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2022-01-24 19:49:58 +0400
commit0226400b7cae38adf000833b07aad1ceee4d98a4 (patch)
tree742d0e349137e091cd7f12447a6c20c6a756e7a2
parent6137a97653a8962e8876cb8ad1da0cd9c3b3b425 (diff)
downloadmariadb-git-bb-10.4-sqlserv-bp-hf.tar.gz
Fix for the problem created by SQL SERVICE for binlogging.bb-10.4-sqlserv-bp-hf
-rw-r--r--sql/mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index c17016448b6..4f8b53e8789 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1782,7 +1782,7 @@ static void close_connections(void)
/* Kill phase 2 */
server_threads.iterate(kill_thread_phase_2);
- for (uint64 i= 0; THD_count::connection_thd_count(); i++)
+ for (uint64 i= 0; THD_count::value() > local_connection_thread_count; i++)
{
/*
This time the warnings are emitted within the loop to provide a