From 9efcea4cecf32e29fc0d0f1f294682b8f46df496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 14 Mar 2017 12:50:47 +0200 Subject: [PATCH] Fix false error message The error message for failure to connect to any server was always logged when the schemarouter was used. --- server/modules/authenticator/MySQLAuth/dbusers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/authenticator/MySQLAuth/dbusers.c b/server/modules/authenticator/MySQLAuth/dbusers.c index c88d342ac..8ec346c23 100644 --- a/server/modules/authenticator/MySQLAuth/dbusers.c +++ b/server/modules/authenticator/MySQLAuth/dbusers.c @@ -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);