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