*Add some missing contents in previous commits.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-04 17:14:34 -06:00
parent 13cfff2327
commit 1622cd26a1
10 changed files with 53 additions and 39 deletions
+4 -4
View File
@@ -64,7 +64,7 @@ void HookSignals();
bool stopEvent = false; ///< Setting it to true stops the server
RealmList m_realmList; ///< Holds the list of realms for this server
DatabaseType dbRealmServer; ///< Accessor to the realm server database
DatabaseType LoginDatabase; ///< Accessor to the realm server database
/// Print out the usage string for this program on the console.
void usage(const char *prog)
@@ -265,7 +265,7 @@ extern int main(int argc, char **argv)
{
loopCounter = 0;
sLog.outDetail("Ping MySQL to keep connection alive");
delete dbRealmServer.Query("SELECT 1 FROM realmlist LIMIT 1");
delete LoginDatabase.Query("SELECT 1 FROM realmlist LIMIT 1");
}
#ifdef WIN32
if (m_ServiceStatus == 0) stopEvent = true;
@@ -274,7 +274,7 @@ extern int main(int argc, char **argv)
}
///- Wait for the delay thread to exit
dbRealmServer.HaltDelayThread();
LoginDatabase.HaltDelayThread();
///- Remove signal handling before leaving
UnhookSignals();
@@ -313,7 +313,7 @@ bool StartDB(std::string &dbstring)
}
sLog.outString("Database: %s", dbstring.c_str() );
if(!dbRealmServer.Initialize(dbstring.c_str()))
if(!LoginDatabase.Initialize(dbstring.c_str()))
{
sLog.outError("Cannot connect to database");
return false;