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
|
||||
|
||||
/**
|
||||
* @file schemarouter.hh - Common schemarouter definitions
|
||||
@ -38,15 +38,15 @@ namespace schemarouter
|
||||
*/
|
||||
struct Config
|
||||
{
|
||||
double refresh_min_interval; /**< Minimum required interval between
|
||||
double refresh_min_interval; /**< Minimum required interval between
|
||||
* refreshes of databases */
|
||||
bool refresh_databases; /**< Are databases refreshed when
|
||||
bool refresh_databases; /**< Are databases refreshed when
|
||||
* they are not found in the hashtable */
|
||||
bool debug; /**< Enable verbose debug messages to clients */
|
||||
pcre2_code* ignore_regex; /**< Regular expression used to ignore databases */
|
||||
pcre2_match_data* ignore_match_data; /**< Match data for @c ignore_regex */
|
||||
bool debug; /**< Enable verbose debug messages to clients */
|
||||
pcre2_code* ignore_regex; /**< Regular expression used to ignore databases */
|
||||
pcre2_match_data* ignore_match_data;/**< Match data for @c ignore_regex */
|
||||
std::set<std::string> ignored_dbs; /**< Set of ignored databases */
|
||||
SERVER* preferred_server; /**< Server to prefer in conflict situations */
|
||||
SERVER* preferred_server; /**< Server to prefer in conflict situations */
|
||||
|
||||
Config(MXS_CONFIG_PARAMETER* conf);
|
||||
|
||||
@ -64,29 +64,29 @@ typedef std::shared_ptr<Config> SConfig;
|
||||
*/
|
||||
struct Stats
|
||||
{
|
||||
int n_queries; /*< Number of queries forwarded */
|
||||
int n_sescmd; /*< Number of session commands */
|
||||
int longest_sescmd; /*< Longest chain of stored session commands */
|
||||
int n_hist_exceeded; /*< Number of sessions that exceeded session
|
||||
* command history limit */
|
||||
int sessions; /*< Number of sessions */
|
||||
int shmap_cache_hit; /*< Shard map was found from the cache */
|
||||
int shmap_cache_miss; /*< No shard map found from the cache */
|
||||
double ses_longest; /*< Longest session */
|
||||
double ses_shortest; /*< Shortest session */
|
||||
double ses_average; /*< Average session length */
|
||||
int n_queries; /*< Number of queries forwarded */
|
||||
int n_sescmd; /*< Number of session commands */
|
||||
int longest_sescmd; /*< Longest chain of stored session commands */
|
||||
int n_hist_exceeded; /*< Number of sessions that exceeded session
|
||||
* command history limit */
|
||||
int sessions; /*< Number of sessions */
|
||||
int shmap_cache_hit; /*< Shard map was found from the cache */
|
||||
int shmap_cache_miss;/*< No shard map found from the cache */
|
||||
double ses_longest; /*< Longest session */
|
||||
double ses_shortest; /*< Shortest session */
|
||||
double ses_average; /*< Average session length */
|
||||
|
||||
Stats():
|
||||
n_queries(0),
|
||||
n_sescmd(0),
|
||||
longest_sescmd(0),
|
||||
n_hist_exceeded(0),
|
||||
sessions(0),
|
||||
shmap_cache_hit(0),
|
||||
shmap_cache_miss(0),
|
||||
ses_longest(0.0),
|
||||
ses_shortest(std::numeric_limits<double>::max()),
|
||||
ses_average(0.0)
|
||||
Stats()
|
||||
: n_queries(0)
|
||||
, n_sescmd(0)
|
||||
, longest_sescmd(0)
|
||||
, n_hist_exceeded(0)
|
||||
, sessions(0)
|
||||
, shmap_cache_hit(0)
|
||||
, shmap_cache_miss(0)
|
||||
, ses_longest(0.0)
|
||||
, ses_shortest(std::numeric_limits<double>::max())
|
||||
, ses_average(0.0)
|
||||
{
|
||||
}
|
||||
};
|
||||
@ -96,13 +96,13 @@ struct Stats
|
||||
*
|
||||
* Owned by router client session.
|
||||
*/
|
||||
class SRBackend: public mxs::Backend
|
||||
class SRBackend : public mxs::Backend
|
||||
{
|
||||
public:
|
||||
|
||||
SRBackend(SERVER_REF *ref):
|
||||
mxs::Backend(ref),
|
||||
m_mapped(false)
|
||||
SRBackend(SERVER_REF* ref)
|
||||
: mxs::Backend(ref)
|
||||
, m_mapped(false)
|
||||
{
|
||||
}
|
||||
|
||||
@ -125,10 +125,9 @@ public:
|
||||
bool is_mapped() const;
|
||||
|
||||
private:
|
||||
bool m_mapped; /**< Whether the backend has been mapped */
|
||||
bool m_mapped; /**< Whether the backend has been mapped */
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<SRBackend> SSRBackend;
|
||||
typedef std::list<SSRBackend> SSRBackendList;
|
||||
|
||||
typedef std::list<SSRBackend> SSRBackendList;
|
||||
}
|
||||
|
Reference in New Issue
Block a user