Fix false error message

The error message for failure to connect to any server was always logged
when the schemarouter was used.
This commit is contained in:
Markus Mäkelä 2017-03-14 12:50:47 +02:00
parent d19e5b376d
commit 9efcea4cec

View File

@ -873,7 +873,7 @@ static int get_users(SERV_LISTENER *listener)
MXS_FREE(dpwd);
if (server == NULL)
if (server == NULL && total_users == -1)
{
MXS_ERROR("Unable to get user data from backend database for service [%s]."
" Failed to connect to any of the backend databases.", service->name);