]> git.ipfire.org Git - thirdparty/squid.git/commit - src/peer_select.cc
Bug 2051: 'default' cache_peer option does not match documentation
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Jul 2011 07:04:54 +0000 (19:04 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Jul 2011 07:04:54 +0000 (19:04 +1200)
commitb4ab8666e50be52f0e99c83e66281d0fdab01193
treea7847e4e800d12e8367fffff20208021a135b41e
parent0db769e1cdc6095f30e8e268ad80d696980bf16e
Bug 2051: 'default' cache_peer option does not match documentation

Move the default parent to second-lowest priority on the parent
selection. This also allows the other more delicate balancing
algorithms to work properly with a default configured.

sourcehash and userhash are reversed in priority to simplify the
selection code around #if..#endif once default is moved.

Also, getAnyParent() is dropped. It is redundant with the FIRSTUP
 algorithm.
src/neighbors.cc
src/peer_select.cc
src/protos.h