COM_SHOW_SLAVE_STAT wasn't classified but it was treated as 'unknown' and thus routed to master.
This commit is contained in:
VilhoRaatikka
2014-12-03 13:27:31 +02:00
parent 33f77303f7
commit b106560317
2 changed files with 29 additions and 26 deletions

View File

@ -619,6 +619,7 @@ static skygw_query_type_t resolve_query_type(
break;
case SQLCOM_SELECT:
case SQLCOM_SHOW_SLAVE_STAT:
type |= QUERY_TYPE_READ;
break;