Merge remote-tracking branch 'origin/Z3' into MAX-237
Conflicts: query_classifier/query_classifier.cc query_classifier/query_classifier.h server/modules/routing/readwritesplit/readwritesplit.c
This commit is contained in:
@ -512,7 +512,15 @@ static skygw_query_type_t resolve_query_type(
|
||||
}
|
||||
else if (lex->option_type == OPT_SESSION)
|
||||
{
|
||||
type |= QUERY_TYPE_SESSION_WRITE;
|
||||
/** SHOW commands are all reads to one backend */
|
||||
if (lex->sql_command == SQLCOM_SHOW_VARIABLES)
|
||||
{
|
||||
type |= QUERY_TYPE_SESSION_READ;
|
||||
}
|
||||
else
|
||||
{
|
||||
type |= QUERY_TYPE_SESSION_WRITE;
|
||||
}
|
||||
goto return_qtype;
|
||||
}
|
||||
/**
|
||||
@ -542,7 +550,6 @@ static skygw_query_type_t resolve_query_type(
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
goto return_qtype;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user