Fix debug assertion on MaxScale shutdown

The assertion didn't take into notice whether teardown had started.
This commit is contained in:
Markus Mäkelä 2018-08-01 23:10:27 +03:00
parent 8cd07def80
commit 107395f608
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -196,7 +196,7 @@ Service* service_alloc(const char *name, const char *router, MXS_CONFIG_PARAMETE
void service_free(Service* service)
{
ss_dassert(atomic_load_int(&service->client_count) == 0);
ss_dassert(atomic_load_int(&service->client_count) == 0 || maxscale_teardown_in_progress());
ss_dassert(!service->active || maxscale_teardown_in_progress());
spinlock_acquire(&service_spin);