Add default parameters to created monitors

When a monitor is created at runtime, it also needs to have the default
parameters. Ideally, this would be done when the monitor is allocated but
because of the way the configuration is processed, we need to do it after
user defined parameters are added.
This commit is contained in:
Markus Mäkelä
2017-01-06 08:59:25 +02:00
parent 72ea3ad453
commit eef0619865
3 changed files with 33 additions and 1 deletions

View File

@ -2384,7 +2384,7 @@ static int validate_ssl_parameters(CONFIG_CONTEXT* obj, char *ssl_cert, char *ss
* @param ctx Configuration context where the default parameters are added
* @param module Name of the module
*/
static void config_add_defaults(CONFIG_CONTEXT *ctx, const char *module, const char *type)
void config_add_defaults(CONFIG_CONTEXT *ctx, const char *module, const char *type)
{
const MXS_MODULE *mod = get_module(module, type);