diff options
author | Machiavelli <none@none> | 2010-12-13 09:18:49 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-13 09:18:49 +0100 |
commit | ea29d87dccc50d985e90c013c128c34a0b8299f7 (patch) | |
tree | 40e2ebedc048e4194a65faf9aa0b34e80af0a197 /src/server/shared/Database/MySQLConnection.cpp | |
parent | f5d6319d4ddd35a9be9ea886aa119465360e397e (diff) |
Backed out changeset: 8326a2411148
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
-rwxr-xr-x | src/server/shared/Database/MySQLConnection.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp index de05ee311db..20c614b5333 100755 --- a/src/server/shared/Database/MySQLConnection.cpp +++ b/src/server/shared/Database/MySQLConnection.cpp @@ -34,11 +34,20 @@ MySQLConnection::MySQLConnection(MySQLConnectionInfo& connInfo) : m_queue(NULL), +m_worker(NULL), m_Mysql(NULL), m_connectionInfo(connInfo) { } +MySQLConnection::MySQLConnection(ACE_Activation_Queue* queue, MySQLConnectionInfo& connInfo) : +m_queue(queue), +m_Mysql(NULL), +m_connectionInfo(connInfo) +{ + m_worker = new DatabaseWorker(m_queue, this); +} + MySQLConnection::~MySQLConnection() { ASSERT (m_Mysql); /// MySQL context must be present at this point |