Merge pull request #5401 from sysown/v3.0_fix-pgsql-extended-query-routing_5387

Revert "Reset current_hostgroup to default when no query rule matches"
pull/5224/head^2
René Cannaò 3 months ago committed by GitHub
commit 2b710e518f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4470,13 +4470,8 @@ __exit_set_destination_hostgroup:
next_query_flagIN = qpo->next_query_flagIN;
}
if (transaction_persistent_hostgroup == -1) {
if (qpo->destination_hostgroup >= 0) {
current_hostgroup = qpo->destination_hostgroup;
} else {
// No query rule matched - use default hostgroup
current_hostgroup = default_hostgroup;
}
if (qpo->destination_hostgroup >= 0 && transaction_persistent_hostgroup == -1) {
current_hostgroup = qpo->destination_hostgroup;
}
// Hostgroup locking check

Loading…
Cancel
Save