Fix regression in prepared statement routing
The prepared statements were router according to the real type instead of being router to the master. This was caused by the change in the route target function.
This commit is contained in:
parent
afa175c3ab
commit
1432677406
@ -1391,6 +1391,8 @@ static route_target_t get_route_target(ROUTER_CLIENT_SES *rses,
|
||||
else if (!trx_active && !load_active &&
|
||||
!QUERY_IS_TYPE(qtype, QUERY_TYPE_MASTER_READ) &&
|
||||
!QUERY_IS_TYPE(qtype, QUERY_TYPE_WRITE) &&
|
||||
!QUERY_IS_TYPE(qtype, QUERY_TYPE_PREPARE_STMT) &&
|
||||
!QUERY_IS_TYPE(qtype, QUERY_TYPE_PREPARE_NAMED_STMT) &&
|
||||
(QUERY_IS_TYPE(qtype, QUERY_TYPE_READ) ||
|
||||
QUERY_IS_TYPE(qtype, QUERY_TYPE_SHOW_TABLES) ||
|
||||
QUERY_IS_TYPE(qtype, QUERY_TYPE_USERVAR_READ) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user