1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-32537 Name threads to improve debugging experience and diagnostics.

Use SetThreadDescription/pthread_setname_np to give threads a name.
This commit is contained in:
Vladislav Vaintroub
2024-06-09 14:01:24 +02:00
parent 584fc85e21
commit 5bd0516488
14 changed files with 131 additions and 36 deletions

View File

@ -1226,7 +1226,7 @@ handle_rpl_parallel_thread(void *arg)
struct rpl_parallel_thread *rpt= (struct rpl_parallel_thread *)arg;
my_thread_init();
my_thread_set_name("rpl_parallel");
my_thread_set_name("rpl_parallel_thread");
thd = new THD(next_thread_id());
thd->thread_stack = (char*)&thd;
server_threads.insert(thd);