Changeset 4630

Show
Ignore:
Timestamp:
03/18/10 11:13:34 (4 months ago)
Author:
phk
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/bin/varnishd/cache_backend.c

    r4557 r4630  
    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++;