MXS-1780 Make retain_last_statements service specific

This commit is contained in:
Johan Wikman
2018-11-07 11:44:25 +02:00
parent 2bd2b4a32e
commit 32f2e769f4
9 changed files with 62 additions and 8 deletions

View File

@ -13,6 +13,13 @@
#include "maxscale/mock/session.hh"
namespace
{
SERVICE dummy_service;
}
namespace maxscale
{
@ -20,7 +27,8 @@ namespace mock
{
Session::Session(Client* pClient)
: m_client(*pClient)
: mxs::Session(&dummy_service)
, m_client(*pClient)
, m_client_dcb(this, pClient->user(), pClient->host(), pClient)
{
MXS_SESSION* pSession = this;