[MXS-333] use_sql_variables_in=master doesn't work Created: 2015-08-25 Updated: 2015-08-25 Resolved: 2015-08-25 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Setting the use_sql_variables_in=master parameter in the readwritesplit should make it so that all read queries which access a variable should be routed to the master. The queries are not routed to the master but are routed to a slave. Steps to reproduce:
The following does work which shows that the select part of the query is the cause.
|
| Comments |
| Comment by markus makela [ 2015-08-25 ] |
|
The select query is classified as a QUERY_TYPE_READ and QUERY_TYPE_USERVAR_READ. This was something which was not expected and the router's logic assumed all QUERY_TYPE_READ queries would be routed to a slave. |