MXS-1929: Process relationships when creating services

The relationships of a service are handled by the service alteration
code. Currently, only server relationships are handled by the code in
question and filter relationships are ignored.
This commit is contained in:
Markus Mäkelä 2018-07-23 21:59:57 +03:00
parent 3f338c8672
commit 22cc155e55
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1915,6 +1915,13 @@ SERVICE* runtime_create_service_from_json(json_t* json)
{
rval = service_find(name);
ss_dassert(rval);
// Performing an alter right after creation takes care of server relationships
if (!runtime_alter_service_from_json(rval, json))
{
runtime_destroy_service(rval);
rval = NULL;
}
}
config_parameter_free(params);