MXS-2720: Fix service session count

The number of sessions wasn't always incremented but it was always
decremented. This happened primarily when authentication failed. By making
the management of the counters a part of the object lifecycle, this
problem goes away.
This commit is contained in:
Markus Mäkelä
2019-10-10 08:57:38 +03:00
committed by Johan Wikman
parent 26a56f48b2
commit 446a3fac15
2 changed files with 7 additions and 5 deletions

View File

@ -17,7 +17,6 @@ namespace
{
SERVICE dummy_service;
}
namespace maxscale
@ -44,6 +43,7 @@ Session::Session(Client* pClient)
strcpy(m_mysql_session.db, "dummy");
m_client_dcb.data = &m_mysql_session;
service = &dummy_service;
}
Session::~Session()