mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/DBLayer: Pass connection info down to lower level class MySQLConnection and use relevant data in logging messages in its methods
--HG-- branch : trunk
This commit is contained in:
@@ -66,11 +66,11 @@ class MySQLConnection
|
||||
friend class PingOperation;
|
||||
|
||||
public:
|
||||
MySQLConnection(); //! Constructor for synchroneous connections.
|
||||
MySQLConnection(ACE_Activation_Queue* queue); //! Constructor for asynchroneous connections.
|
||||
MySQLConnection(const MySQLConnectionInfo& connInfo); //! Constructor for synchroneous connections.
|
||||
MySQLConnection(ACE_Activation_Queue* queue, const MySQLConnectionInfo& connInfo); //! Constructor for asynchroneous connections.
|
||||
~MySQLConnection();
|
||||
|
||||
virtual bool Open(const MySQLConnectionInfo& connInfo); //! Connection details.
|
||||
virtual bool Open();
|
||||
void Close();
|
||||
|
||||
public:
|
||||
@@ -111,6 +111,7 @@ class MySQLConnection
|
||||
ACE_Activation_Queue* m_queue; //! Queue shared with other asynchroneous connections.
|
||||
DatabaseWorker* m_worker; //! Core worker task.
|
||||
MYSQL * m_Mysql; //! MySQL Handle.
|
||||
const MySQLConnectionInfo& m_connectionInfo; //! Connection info (used for logging)
|
||||
ACE_Thread_Mutex m_Mutex;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user