aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-01-29 19:24:14 +0100
committerXTZGZoReX <none@none>2010-01-29 19:24:14 +0100
commita385ea64b03cc7afbdeb8df3ea8a6d5025d6f96a (patch)
tree5842394b3f680256135ab3dbd83e9f0f92bd77c6 /src/trinitycore
parent80061b789914997fb7d1ac8a2d10e9ff1b74e126 (diff)
* Call Database::ThreadStart()/Database::ThreadEnd() for all databases in all threads.
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore')
-rw-r--r--src/trinitycore/CliRunnable.cpp4
-rw-r--r--src/trinitycore/WorldRunnable.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp
index 4549ffcf03e..f18d7ca49cb 100644
--- a/src/trinitycore/CliRunnable.cpp
+++ b/src/trinitycore/CliRunnable.cpp
@@ -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();
}
diff --git a/src/trinitycore/WorldRunnable.cpp b/src/trinitycore/WorldRunnable.cpp
index 358344e1fed..007107f1eb8 100644
--- a/src/trinitycore/WorldRunnable.cpp
+++ b/src/trinitycore/WorldRunnable.cpp
@@ -47,6 +47,7 @@ void WorldRunnable::run()
WorldDatabase.ThreadStart(); // let thread do safe mySQL requests (one connection call enough)
CharacterDatabase.ThreadStart();
loginDatabase.ThreadStart();
+
sWorld.InitResultQueue();
uint32 realCurrTime = 0;