Merge branch 'develop' of github.com:skysql/MaxScale into develop
This commit is contained in:
@ -1152,7 +1152,8 @@ SERVER *server;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strcmp(type, "server") != 0 &&
|
else if (strcmp(type, "server") != 0 &&
|
||||||
strcmp(type, "monitor") != 0)
|
strcmp(type, "monitor") != 0 &&
|
||||||
|
strcmp(type, "filter") != 0)
|
||||||
{
|
{
|
||||||
LOGIF(LE, (skygw_log_write_flush(
|
LOGIF(LE, (skygw_log_write_flush(
|
||||||
LOGFILE_ERROR,
|
LOGFILE_ERROR,
|
||||||
|
|||||||
@ -542,10 +542,13 @@ serviceClearRouterOptions(SERVICE *service)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
spinlock_acquire(&service->spin);
|
spinlock_acquire(&service->spin);
|
||||||
|
if (service->routerOptions != NULL)
|
||||||
|
{
|
||||||
for (i = 0; service->routerOptions[i]; i++)
|
for (i = 0; service->routerOptions[i]; i++)
|
||||||
free(service->routerOptions[i]);
|
free(service->routerOptions[i]);
|
||||||
free(service->routerOptions);
|
free(service->routerOptions);
|
||||||
service->routerOptions = NULL;
|
service->routerOptions = NULL;
|
||||||
|
}
|
||||||
spinlock_release(&service->spin);
|
spinlock_release(&service->spin);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user