We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f0756b commit 194e20bCopy full SHA for 194e20b
lib/PgSQL_Session.cpp
@@ -4470,13 +4470,8 @@ bool PgSQL_Session::handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___PGSQL_Q
4470
next_query_flagIN = qpo->next_query_flagIN;
4471
}
4472
4473
- if (transaction_persistent_hostgroup == -1) {
4474
- if (qpo->destination_hostgroup >= 0) {
4475
- current_hostgroup = qpo->destination_hostgroup;
4476
- } else {
4477
- // No query rule matched - use default hostgroup
4478
- current_hostgroup = default_hostgroup;
4479
- }
+ if (qpo->destination_hostgroup >= 0 && transaction_persistent_hostgroup == -1) {
+ current_hostgroup = qpo->destination_hostgroup;
4480
4481
4482
// Hostgroup locking check
0 commit comments