Uncrustify maxscale
See script directory for method. The script to run in the top level MaxScale directory is called maxscale-uncrustify.sh, which uses another script, list-src, from the same directory (so you need to set your PATH). The uncrustify version was 0.66.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include "hintrouterdefs.hh"
|
||||
|
||||
@ -21,9 +21,9 @@ class HintRouter : public maxscale::Router<HintRouter, HintRouterSession>
|
||||
{
|
||||
public:
|
||||
static HintRouter* create(SERVICE* pService, MXS_CONFIG_PARAMETER* params);
|
||||
HintRouterSession* newSession(MXS_SESSION *pSession);
|
||||
void diagnostics(DCB* pOut);
|
||||
json_t* diagnostics_json() const;
|
||||
HintRouterSession* newSession(MXS_SESSION* pSession);
|
||||
void diagnostics(DCB* pOut);
|
||||
json_t* diagnostics_json() const;
|
||||
uint64_t getCapabilities() const
|
||||
{
|
||||
return RCAP_TYPE_NONE;
|
||||
@ -31,28 +31,31 @@ public:
|
||||
HINT_TYPE get_default_action() const
|
||||
{
|
||||
return m_default_action;
|
||||
};
|
||||
}
|
||||
const string& get_default_server() const
|
||||
{
|
||||
return m_default_server;
|
||||
};
|
||||
}
|
||||
/* Simple, approximate statistics */
|
||||
volatile unsigned int m_routed_to_master;
|
||||
volatile unsigned int m_routed_to_slave;
|
||||
volatile unsigned int m_routed_to_named;
|
||||
volatile unsigned int m_routed_to_all;
|
||||
private:
|
||||
HintRouter(SERVICE* pService, HINT_TYPE default_action, string& default_server,
|
||||
HintRouter(SERVICE* pService,
|
||||
HINT_TYPE default_action,
|
||||
string& default_server,
|
||||
int max_slaves);
|
||||
|
||||
HINT_TYPE m_default_action;
|
||||
string m_default_server;
|
||||
int m_max_slaves;
|
||||
HINT_TYPE m_default_action;
|
||||
string m_default_server;
|
||||
int m_max_slaves;
|
||||
volatile int m_total_slave_conns;
|
||||
private:
|
||||
HintRouter(const HintRouter&);
|
||||
HintRouter& operator = (const HintRouter&);
|
||||
HintRouter& operator=(const HintRouter&);
|
||||
|
||||
static Dcb connect_to_backend(MXS_SESSION* session, SERVER_REF* sref,
|
||||
static Dcb connect_to_backend(MXS_SESSION* session,
|
||||
SERVER_REF* sref,
|
||||
HintRouterSession::BackendMap* all_backends);
|
||||
};
|
||||
|
Reference in New Issue
Block a user