Fix schemarouter duplicate database detection

The detection wouldn't work if the database had no tables.
This commit is contained in:
Markus Mäkelä
2018-12-28 11:33:15 +02:00
parent 3b150ad4b2
commit 4ab25bcd1c

View File

@ -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);