Fix to MXS-365: https://mariadb.atlassian.net/browse/MXS-365 Added tracking of LOAD DATA LOCAL INFILE
While a LOAD DATA LOCAL INFILE query is being executed, all queries will be sent to the master and they will not be processed as normal packets.
This commit is contained in:
@ -1647,6 +1647,11 @@ retblock:
|
||||
|
||||
skygw_query_op_t query_classifier_get_operation(GWBUF* querybuf)
|
||||
{
|
||||
if (!query_is_parsed(querybuf))
|
||||
{
|
||||
parse_query(querybuf);
|
||||
}
|
||||
|
||||
LEX* lex = get_lex(querybuf);
|
||||
skygw_query_op_t operation = QUERY_OP_UNDEFINED;
|
||||
if(lex){
|
||||
@ -1687,6 +1692,9 @@ skygw_query_op_t query_classifier_get_operation(GWBUF* querybuf)
|
||||
case SQLCOM_CHANGE_DB:
|
||||
operation = QUERY_OP_CHANGE_DB;
|
||||
break;
|
||||
case SQLCOM_LOAD:
|
||||
operation = QUERY_OP_LOAD;
|
||||
break;
|
||||
|
||||
default:
|
||||
operation = QUERY_OP_UNDEFINED;
|
||||
|
@ -75,7 +75,8 @@ typedef enum {
|
||||
QUERY_OP_CREATE_INDEX = (1 << 8),
|
||||
QUERY_OP_DROP_TABLE = (1 << 9),
|
||||
QUERY_OP_DROP_INDEX = (1 << 10),
|
||||
QUERY_OP_CHANGE_DB = (1 << 11)
|
||||
QUERY_OP_CHANGE_DB = (1 << 11),
|
||||
QUERY_OP_LOAD = (1 << 12)
|
||||
}skygw_query_op_t;
|
||||
|
||||
typedef struct parsing_info_st {
|
||||
|
Reference in New Issue
Block a user