mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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.
This commit is contained in:
parent
f71f471ed2
commit
801b45bf4f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue