~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/repl/heap/store_repl_heap.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: store_repl_heap.cc,v 1.25 2007/04/30 16:56:19 wessels Exp $
 
3
 * $Id$
4
4
 *
5
5
 * DEBUG: section 81    Store HEAP Removal Policies
6
6
 * AUTHOR: Henrik Nordstrom
12
12
 * For details on the original heap policy work and the thinking behind see
13
13
 * http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
14
14
 *
15
 
 * 
 
15
 *
16
16
 * SQUID Web Proxy Cache          http://www.squid-cache.org/
17
17
 * ----------------------------------------------------------
18
18
 *
29
29
 *  it under the terms of the GNU General Public License as published by
30
30
 *  the Free Software Foundation; either version 2 of the License, or
31
31
 *  (at your option) any later version.
32
 
 *  
 
32
 *
33
33
 *  This program is distributed in the hope that it will be useful,
34
34
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
35
35
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36
36
 *  GNU General Public License for more details.
37
 
 *  
 
37
 *
38
38
 *  You should have received a copy of the GNU General Public License
39
39
 *  along with this program; if not, write to the Free Software
40
40
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
52
52
 
53
53
static int nr_heap_policies = 0;
54
54
 
55
 
struct HeapPolicyData
56
 
{
 
55
struct HeapPolicyData {
57
56
    void setPolicyNode (StoreEntry *, void *) const;
58
57
    RemovalPolicy *policy;
59
58
    heap *theHeap;
154
153
 
155
154
typedef struct _HeapWalkData HeapWalkData;
156
155
 
157
 
struct _HeapWalkData
158
 
{
 
156
struct _HeapWalkData {
159
157
    size_t current;
160
158
};
161
159
 
208
206
 
209
207
typedef struct _HeapPurgeData HeapPurgeData;
210
208
 
211
 
struct _HeapPurgeData
212
 
{
 
209
struct _HeapPurgeData {
213
210
    link_list *locked_entries;
214
211
    heap_key min_age;
215
212
};
234
231
 
235
232
    if (entry->locked()) {
236
233
 
237
 
        entry->lock()
238
 
 
239
 
        ;
 
234
        entry->lock();
240
235
        linklistPush(&heap_walker->locked_entries, entry);
241
236
 
242
237
        goto try_again;