mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +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
|
|
@ -294,6 +294,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];
|
||||
|
||||
|
|
@ -352,4 +354,6 @@ void CliRunnable::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