aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-09-25 01:05:24 +0200
committerMachiavelli <none@none>2010-09-25 01:05:24 +0200
commit62946f9ef643e33adbb0b4fe1d5139a1cb37dae1 (patch)
tree2bd1bc4cd742d42f188dcc1164525244225f47fa /src/server/shared/Database/MySQLConnection.h
parent154d11acc0afdf3639e6a07c931e35674102e44a (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/shared/Database/MySQLConnection.h')
-rw-r--r--src/server/shared/Database/MySQLConnection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.h b/src/server/shared/Database/MySQLConnection.h
index 09c30e7073e..93812421c8a 100644
--- a/src/server/shared/Database/MySQLConnection.h
+++ b/src/server/shared/Database/MySQLConnection.h
@@ -50,6 +50,7 @@ class MySQLConnection
void CommitTransaction();
operator bool () const { return m_Mysql != NULL; }
+ void Ping() { mysql_ping(m_Mysql); }
protected:
MYSQL* GetHandle() { return m_Mysql; }