Cleanup SERVER struct

Removed one unused field. Rearranged others, clarified comments.
This commit is contained in:
Esa Korhonen
2018-04-26 15:29:41 +03:00
parent ba4700a983
commit 5d010ff712
41 changed files with 301 additions and 297 deletions

View File

@ -3176,7 +3176,7 @@ int create_new_server(CONFIG_CONTEXT *obj)
if (*endptr != '\0' || persistpoolmax < 0)
{
MXS_ERROR("Invalid value for 'persistpoolmax' for server %s: %s",
server->unique_name, poolmax);
server->name, poolmax);
error_count++;
}
else
@ -3192,7 +3192,7 @@ int create_new_server(CONFIG_CONTEXT *obj)
if (*endptr != '\0' || persistmaxtime < 0)
{
MXS_ERROR("Invalid value for 'persistmaxtime' for server %s: %s",
server->unique_name, persistmax);
server->name, persistmax);
error_count++;
}
else
@ -3216,7 +3216,7 @@ int create_new_server(CONFIG_CONTEXT *obj)
else
{
MXS_ERROR("Invalid value for '%s' for server %s: %s",
CN_PROXY_PROTOCOL, server->unique_name, proxy_protocol);
CN_PROXY_PROTOCOL, server->name, proxy_protocol);
error_count++;
}
}