Merge branch '2.2' into develop

This commit is contained in:
Markus Mäkelä
2018-03-27 07:25:32 +03:00
8 changed files with 82 additions and 13 deletions

View File

@ -492,8 +492,19 @@ static int ini_handler(void *userdata, const char *section, const char *name, co
if (is_empty_string(value))
{
MXS_ERROR("Empty value given to parameter '%s'", name);
return 0;
if (is_persisted_config)
{
/**
* Found old-style persisted configuration. These will be automatically
* upgraded on the next modification so we can safely ignore it.
*/
return 1;
}
else
{
MXS_ERROR("Empty value given to parameter '%s'", name);
return 0;
}
}
if (config_get_global_options()->substitute_variables)