Commit 04508856 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Make the "debug +vclrel" trick work for all worker threads.

parent 03f3394d
...@@ -321,8 +321,6 @@ SES_Proto_Req(struct worker *wrk, void *arg) ...@@ -321,8 +321,6 @@ SES_Proto_Req(struct worker *wrk, void *arg)
WRONG("Wrong session step"); WRONG("Wrong session step");
} }
WS_Assert(wrk->aws); WS_Assert(wrk->aws);
if (DO_DEBUG(DBG_VCLREL) && wrk->vcl != NULL)
VCL_Rel(&wrk->vcl);
THR_SetRequest(NULL); THR_SetRequest(NULL);
} }
......
...@@ -339,6 +339,8 @@ Pool_Work_Thread(struct pool *pp, struct worker *wrk) ...@@ -339,6 +339,8 @@ Pool_Work_Thread(struct pool *pp, struct worker *wrk)
memset(&wrk->task, 0, sizeof wrk->task); memset(&wrk->task, 0, sizeof wrk->task);
assert(wrk->pool == pp); assert(wrk->pool == pp);
tp->func(wrk, tp->priv); tp->func(wrk, tp->priv);
if (DO_DEBUG(DBG_VCLREL) && wrk->vcl != NULL)
VCL_Rel(&wrk->vcl);
tpx = wrk->task; tpx = wrk->task;
tp = &tpx; tp = &tpx;
} while (tp->func != NULL); } while (tp->func != NULL);
......
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