Apply mysql_query_rules.destination_hostgroup also when unable to parse SET statement.

It a SET statement wasn't parsed correctly, hostgroup was locked
on current hostgroup and not on the hostgroup specified in
mysql_query_rules.destination_hostgroup
pull/2276/head
René Cannaò 7 years ago
parent a4f56291c8
commit 7cc3f949b6

@ -3221,6 +3221,11 @@ __get_pkts_from_client:
if (locked_on_hostgroup < 0) {
if (lock_hostgroup) {
// we are locking on hostgroup now
if ( qpo->destination_hostgroup >= 0 ) {
if (transaction_persistent_hostgroup == -1) {
current_hostgroup=qpo->destination_hostgroup;
}
}
locked_on_hostgroup = current_hostgroup;
thread->status_variables.hostgroup_locked++;
thread->status_variables.hostgroup_locked_set_cmds++;

Loading…
Cancel
Save