Format all sources with Uncrustify

Formatted all sources and manually tuned some files to make the code look
neater.
This commit is contained in:
Markus Mäkelä
2018-09-10 12:40:03 +03:00
parent edd5ddcc88
commit d11c78ad80
183 changed files with 1865 additions and 1695 deletions

View File

@ -453,9 +453,9 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
static modulecmd_arg_type_t args_convert[] =
{
{MODULECMD_ARG_SERVICE | MODULECMD_ARG_NAME_MATCHES_DOMAIN,
"The avrorouter service" },
"The avrorouter service"},
{MODULECMD_ARG_STRING,
"Action, whether to 'start' or 'stop' the conversion process" }
"Action, whether to 'start' or 'stop' the conversion process"}
};
modulecmd_register_command(MXS_MODULE_NAME,
"convert",
@ -529,24 +529,24 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
| MXS_MODULE_OPT_PATH_CREAT
},
{"source",
MXS_MODULE_PARAM_SERVICE },
MXS_MODULE_PARAM_SERVICE},
{"filestem", MXS_MODULE_PARAM_STRING,
BINLOG_NAME_ROOT },
BINLOG_NAME_ROOT},
{"group_rows", MXS_MODULE_PARAM_COUNT,
"1000" },
"1000"},
{"group_trx", MXS_MODULE_PARAM_COUNT,
"1" },
"1"},
{"start_index", MXS_MODULE_PARAM_COUNT,
"1" },
"1"},
{"block_size", MXS_MODULE_PARAM_SIZE,
"0" },
{"codec", MXS_MODULE_PARAM_ENUM, "null",
"0"},
{"codec", MXS_MODULE_PARAM_ENUM, "null",
MXS_MODULE_OPT_ENUM_UNIQUE,
codec_values },
codec_values},
{"match",
MXS_MODULE_PARAM_REGEX },
MXS_MODULE_PARAM_REGEX},
{"exclude",
MXS_MODULE_PARAM_REGEX },
MXS_MODULE_PARAM_REGEX},
{MXS_END_MODULE_PARAMS}
}
};

View File

@ -105,8 +105,8 @@ enum mxs_avro_codec_type
static const MXS_ENUM_VALUE codec_values[] =
{
{"null", MXS_AVRO_CODEC_NULL },
{"deflate", MXS_AVRO_CODEC_DEFLATE },
{"null", MXS_AVRO_CODEC_NULL },
{"deflate", MXS_AVRO_CODEC_DEFLATE},
// Not yet implemented
// {"snappy", MXS_AVRO_CODEC_SNAPPY},
{NULL}
@ -192,7 +192,7 @@ private:
};
void read_table_info(uint8_t* ptr,
uint8_t post_header_len,
uint8_t post_header_len,
uint64_t* table_id,
char* dest,
size_t len);
@ -208,7 +208,7 @@ void read_table_identifier(const char* db,
const char* sql,
const char* end,
char* dest,
int size);
int size);
int avro_client_handle_request(Avro*, AvroSession*, GWBUF*);
void avro_client_rotate(Avro* router, AvroSession* client, uint8_t* ptr);
bool avro_open_binlog(const char* binlogdir, const char* file, int* fd);

View File

@ -235,7 +235,9 @@ public:
SRowEventHandler event_handler,
pcre2_code* match,
pcre2_code* exclude,
gtid_pos_t = {});
gtid_pos_t =
{
});
// Add a stored TableCreateEvent
void add_create(STableCreateEvent create);

File diff suppressed because one or more lines are too long