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

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

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