aboutsummaryrefslogtreecommitdiff
path: root/src/mangosd/WorldRunnable.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-19 21:13:52 +0100
committerXTZGZoReX <none@none>2009-03-19 21:13:52 +0100
commit9fe43fa9c0bd21f6c203072f19a77a570680ecab (patch)
tree5592cf3a9b39a04e7e81295408625713a6fdd2bd /src/mangosd/WorldRunnable.cpp
parentfd2f768dfd7c877880942477a7d1b1645f5bfab9 (diff)
* Implementing database logging:
** LogTime and LogColors config options removed due to incompatibility. ** Old file logging still available. ** Totally redone the Log class. ** Config options added: EnableLogDB, DBLogLevel, LogDB.Char, LogDB.RA, LogDB.GM -- remember to update config file. ** SQL updates attached. --HG-- branch : trunk
Diffstat (limited to 'src/mangosd/WorldRunnable.cpp')
-rw-r--r--src/mangosd/WorldRunnable.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mangosd/WorldRunnable.cpp b/src/mangosd/WorldRunnable.cpp
index 689b1d216a9..607b60684a9 100644
--- a/src/mangosd/WorldRunnable.cpp
+++ b/src/mangosd/WorldRunnable.cpp
@@ -49,6 +49,8 @@ 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;
@@ -97,4 +99,6 @@ void WorldRunnable::run()
///- End the database thread
WorldDatabase.ThreadEnd(); // free mySQL thread resources
+ CharacterDatabase.ThreadStart();
+ LoginDatabase.ThreadEnd();
}