diff options
author | Machiavelli <none@none> | 2010-09-25 01:05:24 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-09-25 01:05:24 +0200 |
commit | 62946f9ef643e33adbb0b4fe1d5139a1cb37dae1 (patch) | |
tree | 2bd1bc4cd742d42f188dcc1164525244225f47fa /src/server/worldserver/Master.cpp | |
parent | 154d11acc0afdf3639e6a07c931e35674102e44a (diff) |
Core/DBLayer:
- Rewrite KeepAlive method for DatabaseWorkerPool. Use mysql_ping instead of explicit select queries, and also schedule KeepAlives for asynchronous threads.
NOTE: While the function is implemented and previous keepalive calls were transformed, it´s possible the keepalive call will need to be placed in several other locations in the code. Please leave feedback on whether or not this fixes your timeout issues.
Update issue #4062
--HG--
branch : trunk
Diffstat (limited to 'src/server/worldserver/Master.cpp')
-rw-r--r-- | src/server/worldserver/Master.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/worldserver/Master.cpp b/src/server/worldserver/Master.cpp index f9f9c1450d4..3dca8d3935b 100644 --- a/src/server/worldserver/Master.cpp +++ b/src/server/worldserver/Master.cpp @@ -135,7 +135,7 @@ public: { loopCounter = 0; sLog.outDetail ("Ping MySQL to keep connection alive"); - LoginDatabase.Query ("SELECT 1 FROM realmlist LIMIT 1"); + LoginDatabase.KeepAlive(); } } |