diff options
author | megamage <none@none> | 2009-01-04 17:14:34 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-04 17:14:34 -0600 |
commit | 1622cd26a1f94732f7ddb0ae824cf5fa77c4e276 (patch) | |
tree | 291702beff04571aa731ee03b8f3bdb434ef2f98 /src/realmd/Main.cpp | |
parent | 13cfff2327247c20ec4c0bcc51fa8cfb2594daff (diff) |
*Add some missing contents in previous commits.
--HG--
branch : trunk
Diffstat (limited to 'src/realmd/Main.cpp')
-rw-r--r-- | src/realmd/Main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/realmd/Main.cpp b/src/realmd/Main.cpp index 8ba1db3c029..98913b5e586 100644 --- a/src/realmd/Main.cpp +++ b/src/realmd/Main.cpp @@ -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; |