Do not destroy services when setting filters fails
If the setting of filters for a service fails at startup, it need not be destroyed as it will be destroyed when MaxScale stops.
This commit is contained in:
parent
cce0aaa7e1
commit
6e79e34dd7
@ -3423,12 +3423,6 @@ int create_new_service(CONFIG_CONTEXT *obj)
|
||||
error_count++;
|
||||
}
|
||||
}
|
||||
|
||||
if (error_count != 0)
|
||||
{
|
||||
service_free(service);
|
||||
service = nullptr;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user