mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[9265] * Call Database::ThreadStart()/ThreadEnd() for all DBs.
This commit is contained in:
parent
ceefebf187
commit
49a0d352b6
4 changed files with 16 additions and 3 deletions
|
|
@ -42,6 +42,9 @@ void WorldRunnable::run()
|
|||
{
|
||||
///- Init new SQL thread for the world database
|
||||
WorldDatabase.ThreadStart(); // let thread do safe mySQL requests (one connection call enough)
|
||||
CharacterDatabase.ThreadStart();
|
||||
loginDatabase.ThreadStart();
|
||||
|
||||
sWorld.InitResultQueue();
|
||||
|
||||
uint32 realCurrTime = 0;
|
||||
|
|
@ -90,4 +93,6 @@ void WorldRunnable::run()
|
|||
|
||||
///- End the database thread
|
||||
WorldDatabase.ThreadEnd(); // free mySQL thread resources
|
||||
CharacterDatabase.ThreadEnd();
|
||||
loginDatabase.ThreadEnd();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue