1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-18353 Shutdown may miss to wait for connection thread

* count CONNECT objects too
* wait for all CONNECT objects to disappear (to be converted to THDs)
  before killing THDs away
This commit is contained in:
Sergei Golubchik
2021-07-14 18:03:53 +02:00
parent b34cafe9d9
commit 4533e6ef65
7 changed files with 57 additions and 7 deletions

View File

@ -42,11 +42,14 @@ public:
bool thread_count_incremented;
ulonglong prior_thr_create_utime;
static Atomic_counter<uint32_t> count;
CONNECT()
:vio(0), host(0), scheduler(thread_scheduler), thread_id(0), real_id(0),
extra_port(0),
thread_count_incremented(0), prior_thr_create_utime(0)
{
count++;
};
~CONNECT();
void close_and_delete();