Refactor readwritesplit session creation

Moved the initialization of the router session's member variables into the
constructor. Changed two functions that calculated server counts into the
router instance as they don't relate to a particular session.
This commit is contained in:
Markus Mäkelä
2017-08-16 22:11:58 +03:00
parent ec33eaada1
commit 46b7db1d45
4 changed files with 90 additions and 130 deletions

View File

@ -73,7 +73,7 @@ class RWSplitSession
RWSplitSession& operator=(const RWSplitSession&);
public:
RWSplitSession(const Config& config);
RWSplitSession(RWSplit* instance, MXS_SESSION* session);
// TODO: Make member variables private
skygw_chk_t rses_chk_top;