Auth/Misc: Code cleanup.

*Random performance optimizations
This commit is contained in:
Chaplain
2013-09-01 22:45:40 +03:00
parent a0f4177f5d
commit aa8bfeec4f
5 changed files with 20 additions and 22 deletions

View File

@@ -298,7 +298,7 @@ bool StartDB()
}
// 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(), uint8(worker_threads), uint8(synch_threads)))
if (!LoginDatabase.Open(dbstring, uint8(worker_threads), uint8(synch_threads)))
{
TC_LOG_ERROR(LOG_FILTER_AUTHSERVER, "Cannot connect to database");
return false;