Changeset 7c772a7


Ignore:
Timestamp:
2010-03-18 11:13:34 (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:
a189f9
Parents:
a5298ab
git-author:
Poul-Henning Kamp <phk@…> (2010-03-18 11:13:34)
git-committer:
Poul-Henning Kamp <phk@…> (2010-03-18 11:13:34)
Message:

Force a WSL_Flush() to make sure the shmrecords pertaining to a reused
backend connection are chronological in the shmlog.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_backend.c

    ra5c201 r7c772a7  
    408408 
    409409        WSL(sp->wrk, SLT_BackendReuse, sp->vbe->fd, "%s", bp->vcl_name); 
     410        /* 
     411         * Flush the shmlog, so that another session reusing this backend 
     412         * will log chronologically later than our use of it. 
     413         */ 
     414        WSL_Flush(sp->wrk, 0); 
    410415        Lck_Lock(&bp->mtx); 
    411416        VSL_stats->backend_recycle++; 
Note: See TracChangeset for help on using the changeset viewer.