]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not use raw pointers to index sourcehash CachePeers (#1474)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sat, 23 Sep 2023 03:57:01 +0000 (03:57 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 23 Sep 2023 13:27:32 +0000 (13:27 +0000)
commit2d5ac435c3bc120b6ddb3458d6360139b09eb891
tree6482cf905f5e50ad282f149ba02aeb740c2ef4dc
parentc524fae9e21accd4627fa751510841f769a93b3d
Do not use raw pointers to index sourcehash CachePeers (#1474)

Simplified and improved code safety by using CbcPointers for sourcehash
cache_peers, as we have done for CARP peers in recent commit e7959b5.

Also fixed mgr:sourcehash Cache Manager reports to detail relevant
cache_peers instead of all cache_peers. This problem existed since
inception (2008 commit f7e1d9c) as detailed in recent commit e7959b5.

Also applied the new "no new globals" policy to CARP peering code, to
keep improved CARP and sourcehash peering code in sync.
src/carp.cc
src/peer_sourcehash.cc