MXS-1929: Add Session class

The Session class now contains all of the C++ objects that were previously
in the MXS_SESSION struct. It is also allocated with new but all
initialization is still done outside of the Session in session_alloc_body.

This commit will not compile as it is a part of a set of commits that make
parts of the session private.
This commit is contained in:
Markus Mäkelä
2018-08-03 12:39:54 +03:00
parent 710f2d3c79
commit 945510e735
5 changed files with 58 additions and 86 deletions

View File

@ -37,16 +37,11 @@ Session::Session(Client* pClient)
strcpy(m_mysql_session.db, "dummy");
pSession->variables = new SessionVarsByName;
m_client_dcb.data = &m_mysql_session;
}
Session::~Session()
{
delete variables;
delete last_statements;
delete dcb_set;
}
Client& Session::client() const