]> git.ipfire.org Git - thirdparty/squid.git/commit - src/acl/Checklist.cc
Fix detection of concurrent ACLChecklist checks, avoiding !accessList asserts.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 8 Jun 2013 23:21:23 +0000 (17:21 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 8 Jun 2013 23:21:23 +0000 (17:21 -0600)
commit7c469a686d688fceacc4eee8a2417b4c5e77e793
tree0da0e9555f7da63446821b7cc2c2d1ea9c687e93
parent6177a89fb89f5ab789a38e3c89d4355d7568b9a3
Fix detection of concurrent ACLChecklist checks, avoiding !accessList asserts.

Concurrent checks are not supported, but it is possible for the same
ACLChecklist to be used for a sequence of checks, alternating fastCheck(void)
and fastCheck(list) calls. We needed a different/dedicated mechanism to detect
check concurrency (added ACLChecklist::occupied_), and we needed to preserve
(and then restore) pre-set accessList during fastCheck(list) checks.
src/acl/Checklist.cc
src/acl/Checklist.h