]> git.ipfire.org Git - thirdparty/squid.git/commit
Polished entry freeing.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 20 Jan 2013 01:53:24 +0000 (18:53 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 20 Jan 2013 01:53:24 +0000 (18:53 -0700)
commit485466dce97e53d21515a04b52a6c1e9246550e2
tree73b25d9782dc2902b3db64d15ae88469f4075955
parentf13833e94e7f85c3a3271dd2bdefe6f1d4050732
Polished entry freeing.

Clean Writeable entries in addition to Readables ones. Otherwise, there is no
way for the caller to completely get rid of a [large] entry the caller has
been writing! We hold the lock so this should be safe as long as slice.next
(and slice extras) are valid even in a half-baked Writeable entry.

Reset slice.next [before giving it to the caller]. As a consequence, we must
free individual slices even if cleaner is not set.
src/ipc/StoreMap.cc