mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
- Call mysql_thread_end() for every deleted MySQLConnection instance, should fix the ¨Error in my_thread_global_end(): X threads didn't exit¨ issue. (Thanks to Aokromes for testing)
- Add some debug info to help trace down the other causes of the shutdown crash. --HG-- branch : trunk
This commit is contained in:
@@ -34,7 +34,7 @@ class MySQL
|
||||
static void Thread_Init()
|
||||
{
|
||||
mysql_thread_init();
|
||||
printf("Core thread with ID ["UI64FMTD"] initializing MySQL thread.",
|
||||
printf("Core thread with ID ["UI64FMTD"] initializing MySQL thread.\n",
|
||||
(uint64)ACE_Based::Thread::currentId());
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class MySQL
|
||||
static void Thread_End()
|
||||
{
|
||||
mysql_thread_end();
|
||||
printf("Core thread with ID ["UI64FMTD"] shutting down MySQL thread.",
|
||||
printf("Core thread with ID ["UI64FMTD"] shutting down MySQL thread.\n",
|
||||
(uint64)ACE_Based::Thread::currentId());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user