Changeset a189f9


Ignore:
Timestamp:
2010-03-18 12:13:54 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
2.1, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
3bbad2
Parents:
7c772a7
git-author:
Poul-Henning Kamp <phk@…> (2010-03-18 12:13:54)
git-committer:
Poul-Henning Kamp <phk@…> (2010-03-18 12:13:54)
Message:

Make sure to release the waiting list, if we give up caching before
picking up the object body.

Fixes #667

git-svn-id:  http://www.varnish-cache.org/svn/trunk@4631 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_hash.c

    ra5c201 ra189f9  
    155155        AZ(oh->refcnt); 
    156156        assert(VTAILQ_EMPTY(&oh->objcs)); 
     157        assert(VTAILQ_EMPTY(&oh->waitinglist)); 
    157158        Lck_Delete(&oh->mtx); 
    158159        w->stats.n_objecthead--; 
     
    572573        assert(oc->objhead == oh); 
    573574        VTAILQ_REMOVE(&oh->objcs, oc, list); 
     575        if (oc->flags & OC_F_BUSY) 
     576                hsh_rush(oh); 
    574577        Lck_Unlock(&oh->mtx); 
    575578        oc->objhead = NULL; 
Note: See TracChangeset for help on using the changeset viewer.