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 <maxscale/ccdefs.hh>
|
||||
|
||||
@ -25,8 +25,8 @@ using namespace maxscale;
|
||||
|
||||
/** This contains the database to server mapping */
|
||||
typedef std::unordered_map<std::string, SERVER*> ServerMap;
|
||||
typedef std::unordered_map<uint64_t, SERVER*> BinaryPSMap;
|
||||
typedef std::unordered_map<uint32_t, uint32_t> PSHandleMap;
|
||||
typedef std::unordered_map<uint64_t, SERVER*> BinaryPSMap;
|
||||
typedef std::unordered_map<uint32_t, uint32_t> PSHandleMap;
|
||||
|
||||
class Shard
|
||||
{
|
||||
@ -53,15 +53,15 @@ public:
|
||||
*/
|
||||
SERVER* get_location(std::string db);
|
||||
|
||||
void add_statement(std::string stmt, SERVER* target);
|
||||
void add_statement(uint32_t id, SERVER* target);
|
||||
void add_ps_handle(uint32_t id, uint32_t handle);
|
||||
void add_statement(std::string stmt, SERVER* target);
|
||||
void add_statement(uint32_t id, SERVER* target);
|
||||
void add_ps_handle(uint32_t id, uint32_t handle);
|
||||
uint32_t get_ps_handle(uint32_t id);
|
||||
bool remove_ps_handle(uint32_t id);
|
||||
SERVER* get_statement(std::string stmt);
|
||||
SERVER* get_statement(uint32_t id);
|
||||
bool remove_statement(std::string stmt);
|
||||
bool remove_statement(uint32_t id);
|
||||
bool remove_ps_handle(uint32_t id);
|
||||
SERVER* get_statement(std::string stmt);
|
||||
SERVER* get_statement(uint32_t id);
|
||||
bool remove_statement(std::string stmt);
|
||||
bool remove_statement(uint32_t id);
|
||||
|
||||
/**
|
||||
* @brief Change the location of a database
|
||||
@ -104,11 +104,11 @@ public:
|
||||
bool newer_than(const Shard& shard) const;
|
||||
|
||||
private:
|
||||
ServerMap m_map;
|
||||
ServerMap stmt_map;
|
||||
ServerMap m_map;
|
||||
ServerMap stmt_map;
|
||||
BinaryPSMap m_binary_map;
|
||||
PSHandleMap m_ps_handles;
|
||||
time_t m_last_updated;
|
||||
time_t m_last_updated;
|
||||
};
|
||||
|
||||
typedef std::unordered_map<std::string, Shard> ShardMap;
|
||||
|
||||
Reference in New Issue
Block a user