Ignore:
Timestamp:
2010-03-18 12:13:54 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 3.0, 4.0, experimental-ims
Children:
01f5f2
Parents:
abe5d56
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/varnish-cache@4631 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_hash.c

    rc08184 r12a4d07  
    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.