Split readwritesplit sources into separate parts
The common readwritesplit header was split into three distinct parts; the instance, session and prepared statement headers. The definitions of any members were moved to .cc files away from the headers. The RWSplitSession, with its RWBackend class, is declared in the rwsplitsession.hh header with all relevant definitions in rwsplitsession.cc. The PSManager class and all prepared statement related functions are now located in the rwsplit_ps.hh header. The old readwritesplit.hh header now contains the instance level structures and all common classes used by the router. The rwsplit_internal.hh header could be absorbed into the three newly created headers with new headers for distinct parts of the router.
This commit is contained in:
@ -12,7 +12,6 @@
|
||||
*/
|
||||
|
||||
#include "readwritesplit.hh"
|
||||
#include "rwsplit_internal.hh"
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
@ -32,6 +31,9 @@
|
||||
#include <maxscale/modutil.h>
|
||||
#include <maxscale/alloc.h>
|
||||
|
||||
#include "rwsplit_internal.hh"
|
||||
#include "rwsplitsession.hh"
|
||||
|
||||
/**
|
||||
* The entry points for the read/write query splitting router module.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user