Format routers and monitors
This commit is contained in:
@ -34,7 +34,7 @@ static const char MAX_SLAVES[] = "max_slaves";
|
||||
|
||||
HintRouter::HintRouter(SERVICE* pService,
|
||||
HINT_TYPE default_action,
|
||||
string& default_server,
|
||||
string& default_server,
|
||||
int max_slaves)
|
||||
: maxscale::Router<HintRouter, HintRouterSession>(pService)
|
||||
, m_routed_to_master(0)
|
||||
@ -191,7 +191,7 @@ json_t* HintRouter::diagnostics_json() const
|
||||
}
|
||||
|
||||
Dcb HintRouter::connect_to_backend(MXS_SESSION* session,
|
||||
SERVER_REF* sref,
|
||||
SERVER_REF* sref,
|
||||
HintRouterSession::BackendMap* all_backends)
|
||||
{
|
||||
Dcb result(NULL);
|
||||
|
||||
@ -44,7 +44,7 @@ public:
|
||||
private:
|
||||
HintRouter(SERVICE* pService,
|
||||
HINT_TYPE default_action,
|
||||
string& default_server,
|
||||
string& default_server,
|
||||
int max_slaves);
|
||||
|
||||
HINT_TYPE m_default_action;
|
||||
@ -56,6 +56,6 @@ private:
|
||||
HintRouter& operator=(const HintRouter&);
|
||||
|
||||
static Dcb connect_to_backend(MXS_SESSION* session,
|
||||
SERVER_REF* sref,
|
||||
SERVER_REF* sref,
|
||||
HintRouterSession::BackendMap* all_backends);
|
||||
};
|
||||
|
||||
@ -55,7 +55,7 @@ private:
|
||||
}
|
||||
|
||||
HintRouterSession::HintRouterSession(MXS_SESSION* pSession,
|
||||
HintRouter* pRouter,
|
||||
HintRouter* pRouter,
|
||||
const BackendMap& backends)
|
||||
: maxscale::RouterSession(pSession)
|
||||
, m_router(pRouter)
|
||||
@ -152,7 +152,7 @@ void HintRouterSession::clientReply(GWBUF* pPacket, DCB* pBackend)
|
||||
}
|
||||
|
||||
void HintRouterSession::handleError(GWBUF* pMessage,
|
||||
DCB* pProblem,
|
||||
DCB* pProblem,
|
||||
mxs_error_action_t action,
|
||||
bool* pSuccess)
|
||||
{
|
||||
|
||||
@ -36,7 +36,7 @@ public:
|
||||
typedef BackendArray::size_type size_type;
|
||||
|
||||
HintRouterSession(MXS_SESSION* pSession,
|
||||
HintRouter* pRouter,
|
||||
HintRouter* pRouter,
|
||||
const BackendMap& backends
|
||||
);
|
||||
|
||||
@ -49,7 +49,7 @@ public:
|
||||
void clientReply(GWBUF* pPacket, DCB* pBackend);
|
||||
|
||||
void handleError(GWBUF* pMessage,
|
||||
DCB* pProblem,
|
||||
DCB* pProblem,
|
||||
mxs_error_action_t action,
|
||||
bool* pSuccess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user