mirror of
https://github.com/MariaDB/server.git
synced 2025-11-21 06:21:35 +03:00
Fixed rare bug in show processlist which could cause core dump if a new thread was connecting.
This commit is contained in:
@@ -204,6 +204,8 @@ void udf_init()
|
||||
new_thd->version--; // Force close to free memory
|
||||
close_thread_tables(new_thd);
|
||||
delete new_thd;
|
||||
/* Remember that we don't have a THD */
|
||||
my_pthread_setspecific_ptr(THR_THD, 0);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user