Commit f44c6878 authored by Monty's avatar Monty

S3: Don't do discover in mysql database (makes boot faster and safer)

parent 9ca51761
......@@ -569,6 +569,10 @@ static int s3_discover_table_existance(handlerton *hton, const char *db,
int res;
DBUG_ENTER("s3_discover_table_existance");
/* Ignore names in "mysql" database to speed up boot */
if (!strcmp(db, MYSQL_SCHEMA_NAME.str))
DBUG_RETURN(0);
if (s3_info_init(&s3_info))
DBUG_RETURN(0);
if (!(s3_client= s3_open_connection(&s3_info)))
......@@ -601,6 +605,10 @@ static int s3_discover_table_names(handlerton *hton __attribute__((unused)),
int error;
DBUG_ENTER("s3_discover_table_names");
/* Ignore names in "mysql" database to speed up boot */
if (!strcmp(db->str, MYSQL_SCHEMA_NAME.str))
DBUG_RETURN(0);
if (s3_info_init(&s3_info))
DBUG_RETURN(0);
if (!(s3_client= s3_open_connection(&s3_info)))
......
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