MXS-2304 Use get_size() instead of config_get_size()
This commit is contained in:
@ -60,7 +60,7 @@ static bool conversion_task_ctl(Avro* inst, bool start);
|
||||
*/
|
||||
MXS_ROUTER* createInstance(SERVICE* service, MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
uint64_t block_size = config_get_size(service->svc_config_param, "block_size");
|
||||
uint64_t block_size = service->svc_config_param->get_size("block_size");
|
||||
mxs_avro_codec_type codec = static_cast<mxs_avro_codec_type>(
|
||||
service->svc_config_param->get_enum("codec", codec_values));
|
||||
std::string avrodir = config_get_string(service->svc_config_param, "avrodir");
|
||||
|
@ -343,7 +343,7 @@ static MXS_ROUTER* createInstance(SERVICE* service, MXS_CONFIG_PARAMETER* params
|
||||
|
||||
inst->short_burst = params->get_integer("shortburst");
|
||||
inst->long_burst = params->get_integer("longburst");
|
||||
inst->burst_size = config_get_size(params, "burstsize");
|
||||
inst->burst_size = params->get_size("burstsize");
|
||||
inst->binlogdir = config_copy_string(params, "binlogdir");
|
||||
inst->heartbeat = params->get_integer("heartbeat");
|
||||
inst->retry_interval = params->get_integer("connect_retry");
|
||||
|
@ -157,7 +157,7 @@ struct Config
|
||||
, delayed_retry(params->get_bool("delayed_retry"))
|
||||
, delayed_retry_timeout(params->get_integer("delayed_retry_timeout"))
|
||||
, transaction_replay(params->get_bool("transaction_replay"))
|
||||
, trx_max_size(config_get_size(params, "transaction_replay_max_size"))
|
||||
, trx_max_size(params->get_size("transaction_replay_max_size"))
|
||||
, optimistic_trx(params->get_bool("optimistic_trx"))
|
||||
{
|
||||
if (causal_reads)
|
||||
|
Reference in New Issue
Block a user