mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
Various Cleanups (shared/Database/)
This commit is contained in:
parent
9753625fd1
commit
c334cd5ea4
25 changed files with 508 additions and 508 deletions
|
|
@ -32,9 +32,9 @@ SqlDelayThread::~SqlDelayThread()
|
|||
|
||||
void SqlDelayThread::run()
|
||||
{
|
||||
#ifndef DO_POSTGRESQL
|
||||
#ifndef DO_POSTGRESQL
|
||||
mysql_thread_init();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const uint32 loopSleepms = 10;
|
||||
|
||||
|
|
@ -49,16 +49,16 @@ void SqlDelayThread::run()
|
|||
|
||||
ProcessRequests();
|
||||
|
||||
if((loopCounter++) >= pingEveryLoop)
|
||||
if ((loopCounter++) >= pingEveryLoop)
|
||||
{
|
||||
loopCounter = 0;
|
||||
m_dbEngine->Ping();
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DO_POSTGRESQL
|
||||
#ifndef DO_POSTGRESQL
|
||||
mysql_thread_end();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void SqlDelayThread::Stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue