Fix to bug 771: http://bugs.mariadb.com/show_bug.cgi?id=711
SHOW GLOBAL STATUS was misclassified as a global system variable write and was being routed to all servers instead of being routed only to the master.
This commit is contained in:
parent
775a4d4c64
commit
32c9d39302
@ -495,10 +495,19 @@ static skygw_query_type_t resolve_query_type(
|
||||
{
|
||||
type |= QUERY_TYPE_GSYSVAR_WRITE;
|
||||
}
|
||||
|
||||
/*
|
||||
* SHOW GLOBAL STATUS - Route to master
|
||||
*/
|
||||
else if (lex->sql_command == SQLCOM_SHOW_STATUS)
|
||||
{
|
||||
type = QUERY_TYPE_WRITE;
|
||||
}
|
||||
/**
|
||||
* REVOKE ALL, ASSIGN_TO_KEYCACHE,
|
||||
* PRELOAD_KEYS, FLUSH, RESET, CREATE|ALTER|DROP SERVER
|
||||
*/
|
||||
|
||||
else
|
||||
{
|
||||
type |= QUERY_TYPE_GSYSVAR_WRITE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user