mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -304,6 +304,7 @@ static sig_handler process_timers(struct timespec *now)
|
||||
static void *timer_handler(void *arg __attribute__((unused)))
|
||||
{
|
||||
my_thread_init();
|
||||
my_thread_set_name("statement_timer");
|
||||
|
||||
mysql_mutex_lock(&LOCK_timer);
|
||||
while (likely(thr_timer_inited))
|
||||
|
Reference in New Issue
Block a user