From ea29d87dccc50d985e90c013c128c34a0b8299f7 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Mon, 13 Dec 2010 09:18:49 +0100 Subject: Backed out changeset: 8326a2411148 --HG-- branch : trunk --- src/server/shared/Database/MySQLConnection.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/server/shared/Database/MySQLConnection.cpp') 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 -- cgit v1.2.3