mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Backed out changeset: 8326a2411148
--HG-- branch : trunk
This commit is contained in:
@@ -344,15 +344,15 @@ bool StartDB()
|
||||
worker_threads = 1;
|
||||
}
|
||||
|
||||
uint8 connections = sConfig.GetIntDefault("LoginDatabase.Connections", 2);
|
||||
if (connections < 1 || connections > 32)
|
||||
uint8 synch_threads = sConfig.GetIntDefault("LoginDatabase.SynchThreads", 1);
|
||||
if (synch_threads < 1 || synch_threads > 32)
|
||||
{
|
||||
sLog.outError("Improper value specified for LoginDatabase.Connections, defaulting to 2.");
|
||||
connections = 2;
|
||||
sLog.outError("Improper value specified for LoginDatabase.SynchThreads, defaulting to 1.");
|
||||
synch_threads = 1;
|
||||
}
|
||||
|
||||
/// NOTE: While authserver is singlethreaded you should keep synch_threads == 1. Increasing it is just silly since only 1 will be used ever.
|
||||
if (!LoginDatabase.Open(dbstring.c_str(), worker_threads, connections))
|
||||
if (!LoginDatabase.Open(dbstring.c_str(), worker_threads, synch_threads))
|
||||
{
|
||||
sLog.outError("Cannot connect to database");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user