~ubuntu-branches/ubuntu/oneiric/squid3/oneiric-security

« back to all changes in this revision

Viewing changes to src/repl/lru/store_repl_lru.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2007-05-13 16:03:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070513160316-2h6kn6h1z0q1fvyo
Tags: 3.0.PRE6-1
* New upstream release
  - Removed patches integrated upsteam:
    + 04-m68k-ftbfs

* debian/rules
  - Enable delay pools (Closes: #410785)
  - Enable cache digests (Closes: #416631)
  - Enable ICAP client
  - Raised Max Filedescriptor limit to 65536

* debian/control
  - Added real package dependency for httpd in squid3-cgi

* debian/patches/02-makefile-defaults
  - Fix default configuration file for cachemgr.cgi (Closes: #416630)

* debian/squid3.postinst
  - Fixed bashish in postinst (Closes: #411797)

* debian/patches/05-helpers-typo
  - Added upstream patch fixing compilation error in src/helpers.cc

* debian/patches/06-mem-obj-reference
  - Added upstream patch fixing a mem_obj reference in src/store.cc

* debian/patches/07-close-icap-connections
  - Added upstream patch fixing icap connection starvation

* debian/squid3.rc
  - Added LSB-compliant description to rc script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: store_repl_lru.cc,v 1.20 2006/09/03 21:05:21 hno Exp $
 
3
 * $Id: store_repl_lru.cc,v 1.22 2007/04/25 11:30:19 adrian Exp $
4
4
 *
5
 
 * DEBUG: section ?     LRU Removal policy
 
5
 * DEBUG: none          LRU Removal Policy
6
6
 * AUTHOR: Henrik Nordstrom
7
7
 *
8
8
 * SQUID Web Proxy Cache          http://www.squid-cache.org/
246
246
    entry = (StoreEntry *) lru_node->node.data;
247
247
    dlinkDelete(&lru_node->node, &lru->list);
248
248
 
249
 
    if (storeEntryLocked(entry)) {
 
249
    if (entry->locked()) {
250
250
        /* Shit, it is locked. we can't return this one */
251
251
        walker->locked++;
252
252
        dlinkAddTail(entry, &lru_node->node, &lru->list);
300
300
    if (lru_node) {
301
301
        StoreEntry *entry = (StoreEntry *) lru_node->node.data;
302
302
 
303
 
        if (storeEntryLocked(entry)) {
 
303
        if (entry->locked()) {
304
304
            lru_node = (LruNode *) lru_node->node.next;
305
305
            goto again;
306
306
        }