mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11054] Do not allow async transaction execution while server is loading. Call Database::InitDelayThread() function explicitly to create async DB worker thread after server initialization is complete.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
e6e7bf8573
commit
07c9f0cbb8
9 changed files with 59 additions and 58 deletions
|
|
@ -43,23 +43,7 @@ DatabasePostgre::DatabasePostgre()
|
|||
|
||||
DatabasePostgre::~DatabasePostgre()
|
||||
{
|
||||
if (m_delayThread)
|
||||
HaltDelayThread();
|
||||
|
||||
//destroy SqlConnection objects
|
||||
if(m_pQueryConnections.size())
|
||||
{
|
||||
for (int i = 0; i < m_pQueryConnections.size(); ++i)
|
||||
delete m_pQueryConnections[i];
|
||||
|
||||
m_pQueryConnections.clear();
|
||||
}
|
||||
|
||||
if(m_pAsyncConn)
|
||||
{
|
||||
delete m_pAsyncConn;
|
||||
m_pAsyncConn = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
SqlConnection * DatabasePostgre::CreateConnection()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue