Skip to content

Commit 18a7eab

Browse files
committed
Fix 'MySQLWorker' threads naming
1 parent 8cc081c commit 18a7eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MySQL_Thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ proxysql_mysql_thread_t * MySQL_Threads_Handler::create_thread(unsigned int tn,
24622462
if (GloVars.set_thread_name == true) {
24632463
char thr_name[16];
24642464
snprintf(thr_name, sizeof(thr_name), "MySQLIdle%d", tn);
2465-
pthread_setname_np(mysql_threads[tn].thread_id, thr_name);
2465+
pthread_setname_np(mysql_threads_idles[tn].thread_id, thr_name);
24662466
}
24672467
}
24682468
#endif // defined(__linux__) || defined(__FreeBSD__)

0 commit comments

Comments
 (0)