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 "schemarouter.hh"
|
||||
|
||||
@ -30,29 +30,28 @@ class SchemaRouterSession;
|
||||
/**
|
||||
* The per instance data for the router.
|
||||
*/
|
||||
class SchemaRouter: public mxs::Router<SchemaRouter, SchemaRouterSession>
|
||||
class SchemaRouter : public mxs::Router<SchemaRouter, SchemaRouterSession>
|
||||
{
|
||||
public:
|
||||
~SchemaRouter();
|
||||
static SchemaRouter* create(SERVICE* pService, MXS_CONFIG_PARAMETER* params);
|
||||
SchemaRouterSession* newSession(MXS_SESSION* pSession);
|
||||
void diagnostics(DCB* pDcb);
|
||||
json_t* diagnostics_json() const;
|
||||
uint64_t getCapabilities();
|
||||
bool configure(MXS_CONFIG_PARAMETER* param);
|
||||
void diagnostics(DCB* pDcb);
|
||||
json_t* diagnostics_json() const;
|
||||
uint64_t getCapabilities();
|
||||
bool configure(MXS_CONFIG_PARAMETER* param);
|
||||
|
||||
private:
|
||||
friend class SchemaRouterSession;
|
||||
|
||||
/** Internal functions */
|
||||
SchemaRouter(SERVICE *service, SConfig config);
|
||||
SchemaRouter(SERVICE* service, SConfig config);
|
||||
|
||||
/** Member variables */
|
||||
SConfig m_config; /*< expanded config info from SERVICE */
|
||||
ShardManager m_shard_manager; /*< Shard maps hashed by user name */
|
||||
SERVICE* m_service; /*< Pointer to service */
|
||||
SPINLOCK m_lock; /*< Lock for the instance data */
|
||||
Stats m_stats; /*< Statistics for this router */
|
||||
SConfig m_config; /*< expanded config info from SERVICE */
|
||||
ShardManager m_shard_manager; /*< Shard maps hashed by user name */
|
||||
SERVICE* m_service; /*< Pointer to service */
|
||||
SPINLOCK m_lock; /*< Lock for the instance data */
|
||||
Stats m_stats; /*< Statistics for this router */
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user