* Call Database::ThreadStart()/Database::ThreadEnd() for all databases in all threads.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-01-29 19:24:14 +01:00
parent 80061b7899
commit a385ea64b0
4 changed files with 15 additions and 2 deletions
+4
View File
@@ -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();
}