Format config.cc and config_runtime.cc
This commit is contained in:
@ -1932,9 +1932,9 @@ uint64_t MXS_CONFIG_PARAMETER::get_size(const std::string& key) const
|
||||
return intval;
|
||||
}
|
||||
|
||||
std::chrono::milliseconds
|
||||
MXS_CONFIG_PARAMETER::get_duration(const std::string& key,
|
||||
mxs::config::DurationInterpretation interpretation) const
|
||||
std::chrono::milliseconds MXS_CONFIG_PARAMETER::get_duration(const std::string& key,
|
||||
mxs::config::DurationInterpretation interpretation)
|
||||
const
|
||||
{
|
||||
string value = get_string(key);
|
||||
std::chrono::milliseconds duration {0};
|
||||
@ -2015,8 +2015,7 @@ char* MXS_CONFIG_PARAMETER::get_c_str_copy(const string& key) const
|
||||
return rval;
|
||||
}
|
||||
|
||||
std::unique_ptr<pcre2_code>
|
||||
MXS_CONFIG_PARAMETER::get_compiled_regex(const string& key, uint32_t options,
|
||||
std::unique_ptr<pcre2_code> MXS_CONFIG_PARAMETER::get_compiled_regex(const string& key, uint32_t options,
|
||||
uint32_t* output_ovec_size) const
|
||||
{
|
||||
auto regex_string = get_string(key);
|
||||
@ -2032,9 +2031,11 @@ MXS_CONFIG_PARAMETER::get_compiled_regex(const string& key, uint32_t options,
|
||||
return code;
|
||||
}
|
||||
|
||||
std::vector<std::unique_ptr<pcre2_code>>
|
||||
MXS_CONFIG_PARAMETER::get_compiled_regexes(const std::vector<string>& keys, uint32_t options,
|
||||
uint32_t* ovec_size_out, bool* compile_error_out)
|
||||
std::vector<std::unique_ptr<pcre2_code>> MXS_CONFIG_PARAMETER::get_compiled_regexes(
|
||||
const std::vector<string>& keys,
|
||||
uint32_t options,
|
||||
uint32_t* ovec_size_out,
|
||||
bool* compile_error_out)
|
||||
{
|
||||
std::vector<std::unique_ptr<pcre2_code>> rval;
|
||||
bool compile_error = false;
|
||||
@ -5017,7 +5018,7 @@ bool get_suffixed_duration(const char* zValue,
|
||||
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
if (*zEnd == 0)
|
||||
{
|
||||
@ -5124,7 +5125,7 @@ std::string generate_config_string(const std::string& instance_name, const MXS_C
|
||||
const MXS_MODULE_PARAM* common_param_defs,
|
||||
const MXS_MODULE_PARAM* module_param_defs)
|
||||
{
|
||||
string output = "[" + instance_name + "]\n";;
|
||||
string output = "[" + instance_name + "]\n";
|
||||
// Common params and module params are null-terminated arrays. Loop over both and print parameter
|
||||
// names and values.
|
||||
for (auto param_set : {common_param_defs, module_param_defs})
|
||||
|
Reference in New Issue
Block a user