MXS-1929: Destroy filters separately from services

The previous implementation did not destroy filters that were not used by
services. With the full initialization of filters in filter_alloc, we can
simply traverse the list of created filters and destroy them knowing that
they are all valid.
This commit is contained in:
Markus Mäkelä
2018-07-24 08:41:36 +03:00
parent cea36dc7be
commit 93521e4327
3 changed files with 25 additions and 71 deletions

View File

@ -63,5 +63,9 @@ bool filter_can_be_destroyed(MXS_FILTER_DEF *filter);
*/
void filter_destroy(MXS_FILTER_DEF *filter);
/**
* Destroy all filters
*/
void filter_destroy_instances();
MXS_END_DECLS