From a85534e116bd8a4cc196497bf8ed29cda90a4d9b Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Tue, 16 Aug 2022 15:37:29 +0200 Subject: [PATCH] Fix for MODCLUSTER-765. --- native/mod_proxy_cluster/mod_proxy_cluster.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/native/mod_proxy_cluster/mod_proxy_cluster.c b/native/mod_proxy_cluster/mod_proxy_cluster.c index ac9430157..c310a2e0a 100644 --- a/native/mod_proxy_cluster/mod_proxy_cluster.c +++ b/native/mod_proxy_cluster/mod_proxy_cluster.c @@ -1989,7 +1989,8 @@ static proxy_worker *internal_find_best_byrequests(proxy_balancer *balancer, pro #endif /* create workers for new nodes */ - update_workers_node(conf, r->pool, r->server, 1, node_table); + if (!cache_share_for) + update_workers_node(conf, r->pool, r->server, 1, node_table); // do this once now to avoid repeating find_node_context_host through loop iterations route = apr_table_get(r->notes, "session-route"); @@ -2883,7 +2884,9 @@ static int proxy_cluster_trans(request_rec *r) #endif /* make sure we have a up to date workers and balancers in our process */ - update_workers_node(conf, r->pool, r->server, 1, node_table); + if (!cache_share_for) + update_workers_node(conf, r->pool, r->server, 1, node_table); + balancer = get_route_balancer(r, conf, vhost_table, context_table, balancer_table, node_table); if (!balancer) { balancer = get_context_host_balancer(r, vhost_table, context_table, node_table);