Cleanup SERVER struct
Removed one unused field. Rearranged others, clarified comments.
This commit is contained in:
@ -198,7 +198,7 @@ int PamInstance::load_users(SERVICE* service)
|
||||
if (mysql_query(mysql, PAM_USERS_QUERY))
|
||||
{
|
||||
MXS_ERROR("Failed to query server '%s' for PAM users: '%s'.",
|
||||
servers->server->unique_name, mysql_error(mysql));
|
||||
servers->server->name, mysql_error(mysql));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -305,7 +305,7 @@ bool PamInstance::query_anon_proxy_user(SERVER* server, MYSQL* conn)
|
||||
if (mysql_query(conn, ANON_USER_QUERY))
|
||||
{
|
||||
MXS_ERROR("Failed to query server '%s' for the anonymous PAM user: '%s'.",
|
||||
server->unique_name, mysql_error(conn));
|
||||
server->name, mysql_error(conn));
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
@ -331,7 +331,7 @@ bool PamInstance::query_anon_proxy_user(SERVER* server, MYSQL* conn)
|
||||
if (mysql_query(conn, ANON_GRANT_QUERY))
|
||||
{
|
||||
MXS_ERROR("Failed to query server '%s' for the grants of the anonymous PAM user: '%s'.",
|
||||
server->unique_name, mysql_error(conn));
|
||||
server->name, mysql_error(conn));
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user