Fix crash on double creation of listeners

When the listeners were created twice, MaxScale would crash when the users
were loaded. This is caused by the fact that the DCB for the listener is
NULL for failed listeners.
This commit is contained in:
Markus Makela
2016-12-13 00:16:49 +02:00
parent 7a04259fc0
commit a0f6dd8abc
2 changed files with 65 additions and 12 deletions

View File

@ -162,7 +162,6 @@ typedef struct service
bool strip_db_esc; /**< Remove the '\' characters from database names
* when querying them from the server. MySQL Workbench seems
* to escape at least the underscore character. */
SPINLOCK users_table_spin; /**< The spinlock for users data refresh */
SERVICE_REFRESH_RATE rate_limit; /**< The refresh rate limit for users table */
FILTER_DEF **filters; /**< Ordered list of filters */
int n_filters; /**< Number of filters */