Format rest of the sources
This commit is contained in:
@ -44,15 +44,15 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
||||
MXS_FILTER_VERSION,
|
||||
DESC,
|
||||
"V1.0.0",
|
||||
RCAP_TYPE_STMT_INPUT, // See getCapabilities() below
|
||||
&ExampleFilter::s_object, // This is defined in the MaxScale filter template
|
||||
NULL, /* Process init. */
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
RCAP_TYPE_STMT_INPUT, // See getCapabilities() below
|
||||
&ExampleFilter::s_object, // This is defined in the MaxScale filter template
|
||||
NULL, /* Process init. */
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{
|
||||
{"an_example_parameter", MXS_MODULE_PARAM_STRING, "a-default-value"},
|
||||
{CN_COUNT_GLOBALS, MXS_MODULE_PARAM_BOOL, "true"},
|
||||
{"an_example_parameter",MXS_MODULE_PARAM_STRING, "a-default-value"},
|
||||
{CN_COUNT_GLOBALS, MXS_MODULE_PARAM_BOOL, "true" },
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
@ -87,8 +87,8 @@ private:
|
||||
ExampleFilter(const MXS_CONFIG_PARAMETER* pParams);
|
||||
|
||||
// The fields are specific to ExampleFilter.
|
||||
std::atomic<int> m_total_queries {0}; /**< How many queries has this filter seen */
|
||||
std::atomic<int> m_total_replies {0}; /**< How many replies has this filter seen */
|
||||
std::atomic<int> m_total_queries {0}; /**< How many queries has this filter seen */
|
||||
std::atomic<int> m_total_replies {0}; /**< How many replies has this filter seen */
|
||||
|
||||
bool m_collect_global_counts {false}; /**< Should sessions manipulate the total counts */
|
||||
bool m_collect_global_counts {false}; /**< Should sessions manipulate the total counts */
|
||||
};
|
||||
|
||||
@ -70,9 +70,9 @@ private:
|
||||
// Used in the create function
|
||||
ExampleFilterSession(MXS_SESSION* pSession, ExampleFilter& filter);
|
||||
|
||||
ExampleFilter& m_filter; /**< Shared filter data */
|
||||
ExampleFilter& m_filter; /**< Shared filter data */
|
||||
|
||||
uint64_t m_session_id {0}; /**< Session id */
|
||||
int m_queries {0}; /**< How many queries has this session seen */
|
||||
int m_replies {0}; /**< How many replies has this session seen */
|
||||
uint64_t m_session_id {0}; /**< Session id */
|
||||
int m_queries {0}; /**< How many queries has this session seen */
|
||||
int m_replies {0}; /**< How many replies has this session seen */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user