Zendesk's Maxwell Compatibility (#119)
* Binlog router: Introduce maxwell_compatibility flag * Binlog router: Handle 'server vars' query This is a step towards using MaxScale with Zendesk's Maxwell. * Binlog router: Handle results charset query * Binlog router: Handle sql_mode query * Binlog router: Handle server_id query * Binlog router: Handle 'binlog vars' queries * Binlog router: Handle @@lower_case_table_names query * Binlog router: Handle @@global.binlog_checksum query * Binlog router: DRY Maxwell SQL queries
This commit is contained in:

committed by
MassimilianoPinto

parent
fdc66c660c
commit
825782799f
@ -185,6 +185,7 @@ MXS_MODULE* MXS_CREATE_MODULE()
|
||||
{"master_version", MXS_MODULE_PARAM_STRING},
|
||||
{"master_hostname", MXS_MODULE_PARAM_STRING},
|
||||
{"mariadb10-compatibility", MXS_MODULE_PARAM_BOOL, "false"},
|
||||
{"maxwell-compatibility", MXS_MODULE_PARAM_BOOL, "false"},
|
||||
{"filestem", MXS_MODULE_PARAM_STRING, BINLOG_NAME_ROOT},
|
||||
{"file", MXS_MODULE_PARAM_COUNT, "1"},
|
||||
{"transaction_safety", MXS_MODULE_PARAM_BOOL, "false"},
|
||||
@ -331,6 +332,7 @@ createInstance(SERVICE *service, char **options)
|
||||
inst->heartbeat = config_get_integer(params, "heartbeat");
|
||||
inst->ssl_cert_verification_depth = config_get_integer(params, "ssl_cert_verification_depth");
|
||||
inst->mariadb10_compat = config_get_bool(params, "mariadb10-compatibility");
|
||||
inst->maxwell_compat = config_get_bool(params, "maxwell-compatibility");
|
||||
inst->trx_safe = config_get_bool(params, "transaction_safety");
|
||||
inst->set_master_version = config_copy_string(params, "master_version");
|
||||
inst->set_master_hostname = config_copy_string(params, "master_hostname");
|
||||
@ -486,6 +488,10 @@ createInstance(SERVICE *service, char **options)
|
||||
{
|
||||
inst->mariadb10_compat = config_truth_value(value);
|
||||
}
|
||||
else if (strcmp(options[i], "maxwell-compatibility") == 0)
|
||||
{
|
||||
inst->maxwell_compat = config_truth_value(value);
|
||||
}
|
||||
else if (strcmp(options[i], "filestem") == 0)
|
||||
{
|
||||
MXS_FREE(inst->fileroot);
|
||||
|
Reference in New Issue
Block a user