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:

committed by
Johan Wikman

parent
26a56f48b2
commit
446a3fac15
@ -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()
|
||||
|
Reference in New Issue
Block a user