Remove explicit calls to parse_query.

Now that all query classifier functions parse the query if it
has not been parsed, there is no reason for any module to call
parse_query explicitly.
This commit is contained in:
Johan Wikman
2016-01-11 10:15:13 +02:00
parent 6e6ad67504
commit ec281849aa
4 changed files with 1 additions and 27 deletions

View File

@ -447,11 +447,6 @@ get_shard_target_name(ROUTER_INSTANCE* router, ROUTER_CLIENT_SES* client, GWBUF*
char *query = NULL,*tmp = NULL;
bool has_dbs = false; /**If the query targets any database other than the current one*/
if(!query_is_parsed(buffer))
{
parse_query(buffer);
}
dbnms = skygw_get_database_names(buffer, &sz);
if(sz > 0)