1
0
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:
monty@mashka.mysql.fi
2002-12-11 12:44:17 +02:00
parent 82a9669267
commit c1b233ec55
2 changed files with 9 additions and 5 deletions

View File

@@ -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;
}