]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not register the same Cache Manager action more than once
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 3 Jun 2014 07:10:53 +0000 (01:10 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Jun 2014 07:10:53 +0000 (01:10 -0600)
commit05e13b51b74b3662323255ceea0ef3c4675050e1
tree4302dd93d62758a1c627e4c085abe98586f13f70
parent7552d310f304af6c26d17c95a6a66bdfba6b367f
Do not register the same Cache Manager action more than once

... to avoid wrong mgr:menu output and the impression of a reconfigure
memory leak.

The old code was comparing action object pointers, which could not work,
and was adding the same action on every reconfigure call for modules that
register with Cache Manager during [re]configuration.

We already have a working method for finding registered actions. Use it.
src/cache_manager.cc