Fixed use_sql_variables_in=master not working.

This commit is contained in:
Markus Makela
2015-08-25 21:53:54 +03:00
parent ab86b67bda
commit b3be72022c

View File

@ -1441,7 +1441,8 @@ static route_target_t get_route_target (
{
target = TARGET_SLAVE;
}
else if (QUERY_IS_TYPE(qtype, QUERY_TYPE_MASTER_READ) ||
if (QUERY_IS_TYPE(qtype, QUERY_TYPE_MASTER_READ) ||
QUERY_IS_TYPE(qtype, QUERY_TYPE_EXEC_STMT) ||
/** Configured not to allow reading variables from slaves */
(use_sql_variables_in == TYPE_MASTER &&