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:
@ -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)
|
||||
|
Reference in New Issue
Block a user