From 4ab25bcd1caf55f0e4d1259c8fd4ded571af00c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 28 Dec 2018 11:33:15 +0200 Subject: [PATCH] Fix schemarouter duplicate database detection The detection wouldn't work if the database had no tables. --- server/modules/routing/schemarouter/schemaroutersession.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/schemarouter/schemaroutersession.cc b/server/modules/routing/schemarouter/schemaroutersession.cc index 6400ad31f..6bd674978 100644 --- a/server/modules/routing/schemarouter/schemaroutersession.cc +++ b/server/modules/routing/schemarouter/schemaroutersession.cc @@ -1310,7 +1310,7 @@ enum showdb_response SchemaRouterSession::parse_mapping_response(SSRBackend& bre } else { - if (!ignore_duplicate_database(data) && strchr(data, '.') != NULL) + if (!ignore_duplicate_database(data)) { duplicate_found = true; SERVER* duplicate = m_shard.get_location(data);