mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 15:27:47 -04:00
* Call Database::ThreadStart()/Database::ThreadEnd() for all databases in all threads.
--HG-- branch : trunk
This commit is contained in:
@@ -369,6 +369,8 @@ void CliRunnable::run()
|
||||
{
|
||||
///- Init new SQL thread for the world database (one connection call enough)
|
||||
WorldDatabase.ThreadStart(); // let thread do safe mySQL requests
|
||||
CharacterDatabase.ThreadStart();
|
||||
loginDatabase.ThreadStart();
|
||||
|
||||
char commandbuf[256];
|
||||
bool canflush = true;
|
||||
@@ -438,4 +440,6 @@ void CliRunnable::run()
|
||||
|
||||
///- End the database thread
|
||||
WorldDatabase.ThreadEnd(); // free mySQL thread resources
|
||||
CharacterDatabase.ThreadEnd();
|
||||
loginDatabase.ThreadEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user