aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/Master.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-13 16:13:32 +0100
committerMachiavelli <none@none>2010-12-13 16:13:32 +0100
commitf1a73e89b82c770c111070f0a3e3adb173432466 (patch)
treea78ea0170954baecdcd9652eb32c53737bc99a5c /src/server/worldserver/Master.cpp
parentdd2602d3ecbd91c8accd51f62e2b89af3549dbd8 (diff)
parentea29d87dccc50d985e90c013c128c34a0b8299f7 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/server/worldserver/Master.cpp')
-rwxr-xr-xsrc/server/worldserver/Master.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/worldserver/Master.cpp b/src/server/worldserver/Master.cpp
index 158f92cbb89..d04d64be02f 100755
--- a/src/server/worldserver/Master.cpp
+++ b/src/server/worldserver/Master.cpp
@@ -366,7 +366,7 @@ bool Master::_StartDB()
{
sLog.SetLogDB(false);
std::string dbstring;
- uint8 async_threads, connections;
+ uint8 async_threads, synch_threads;
dbstring = sConfig.GetStringDefault("WorldDatabaseInfo", "");
if (dbstring.empty())
@@ -383,10 +383,10 @@ bool Master::_StartDB()
return false;
}
- connections = sConfig.GetIntDefault("WorldDatabase.Connections", 2);
+ synch_threads = sConfig.GetIntDefault("WorldDatabase.SynchThreads", 1);
///- Initialise the world database
- if (!WorldDatabase.Open(dbstring, async_threads, connections))
+ if (!WorldDatabase.Open(dbstring, async_threads, synch_threads))
{
sLog.outError("Cannot connect to world database %s", dbstring.c_str());
return false;
@@ -407,10 +407,10 @@ bool Master::_StartDB()
return false;
}
- connections = sConfig.GetIntDefault("CharacterDatabase.Connections", 2);
+ synch_threads = sConfig.GetIntDefault("CharacterDatabase.SynchThreads", 2);
///- Initialise the Character database
- if (!CharacterDatabase.Open(dbstring, async_threads, connections))
+ if (!CharacterDatabase.Open(dbstring, async_threads, synch_threads))
{
sLog.outError("Cannot connect to Character database %s", dbstring.c_str());
return false;
@@ -432,10 +432,10 @@ bool Master::_StartDB()
return false;
}
- connections = sConfig.GetIntDefault("LoginDatabase.Connections", 2);
+ synch_threads = sConfig.GetIntDefault("LoginDatabase.SynchThreads", 1);
///- Initialise the login database
- if (!LoginDatabase.Open(dbstring, async_threads, connections))
+ if (!LoginDatabase.Open(dbstring, async_threads, synch_threads))
{
sLog.outError("Cannot connect to login database %s", dbstring.c_str());
return false;