MXS-1929: Prevent destruction of services with filters

If a service has filters, they must first be removed before the service
can be destroyed. This is not a functional requirement but it keeps the
behavior consistent so that the relationships of a service must be empty
before it is destroyed.
This commit is contained in:
Markus Mäkelä
2018-08-09 11:48:46 +03:00
parent ccdf1c5679
commit db09996bb8

View File

@ -889,6 +889,11 @@ bool service_can_be_destroyed(Service *service)
}
}
if (!service->get_filters().empty())
{
rval = false;
}
return rval;
}