Commit 10e8ba13 authored by Monty's avatar Monty

ha_discover_table_names() now always remove duplicates

Discoverred to be needed by the upcoming S3 engine
parent 007f68c3
......@@ -5634,6 +5634,8 @@ int ha_discover_table_names(THD *thd, LEX_CSTRING *db, MY_DIR *dirp,
error= ext_table_discovery_simple(dirp, result) ||
plugin_foreach(thd, discover_names,
MYSQL_STORAGE_ENGINE_PLUGIN, &args);
if (args.possible_duplicates > 0)
result->remove_duplicates();
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment