Commit abe5d56b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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/varnish-cache@4630 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b85642b7
......@@ -407,6 +407,11 @@ VBE_RecycleFd(struct sess *sp)
bp = sp->vbe->backend;
WSL(sp->wrk, SLT_BackendReuse, sp->vbe->fd, "%s", bp->vcl_name);
/*
* Flush the shmlog, so that another session reusing this backend
* will log chronologically later than our use of it.
*/
WSL_Flush(sp->wrk, 0);
Lck_Lock(&bp->mtx);
VSL_stats->backend_recycle++;
VTAILQ_INSERT_HEAD(&bp->connlist, sp->vbe, list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment