Commit 801b45bf authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-26890 : Crash on shutdown, with active binlog dump threads

   Backported from 10.7.
   The reason for the crash was a bug in MDEV-19275, after which
   shutdown does not wait for binlog threads anymore.
parent f71f471e
......@@ -1814,7 +1814,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment