MXS-2432 Recognize RESET
RESET QUERY CACHE is reported to be a session command, which will cause it to be sent to all servers. RESET [MASTER|SLAVE] are classified as write, which will cause them to be sent to the master. It could be argued that RESET [MASTER|SLAVE] should cause an error to be sent to the client.
This commit is contained in:
@ -999,6 +999,17 @@ static uint32_t resolve_query_type(parsing_info_t* pi, THD* thd)
|
||||
goto return_qtype;
|
||||
break;
|
||||
|
||||
case SQLCOM_RESET:
|
||||
if (lex->type & REFRESH_QUERY_CACHE)
|
||||
{
|
||||
type |= QUERY_TYPE_SESSION_WRITE;
|
||||
}
|
||||
else
|
||||
{
|
||||
type |= QUERY_TYPE_WRITE;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
type |= QUERY_TYPE_WRITE;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user