mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[9272] Revert "[9265] * Call Database::ThreadStart()/ThreadEnd() for all DBs."
This reverts commit af146f14c0999eed0e293bc0595a04e62df54f3e. Not need call this function more that one per thread.
This commit is contained in:
parent
a24320d4b5
commit
df70a2c81d
4 changed files with 3 additions and 16 deletions
|
|
@ -42,9 +42,6 @@ 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;
|
||||
|
|
@ -93,6 +90,4 @@ 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